[cmake-developers] FeatureSummary and Fortran
Alin Marin Elena
alinm.elena at gmail.com
Mon Feb 8 10:35:04 EST 2016
Hi,
I was playing to day with FeatureSummary and Fortran and I discovered the two
do not like each other too much . While MPI is obviously found in here...
Feature summary claims it did not
-- The Fortran compiler identification is GNU 5.3.1
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found MPI_Fortran: /opt/openmpi/gcc/1.10.1/lib64/libmpi_usempif08.so;/opt/
openmpi/gcc/1.10.1/lib64/libmpi_usempi_ignore_tkr.so;/opt/openmpi/gcc/1.10.1/
lib64/libmpi_mpifh.so;/opt/openmpi/gcc/1.10.1/lib64/libmpi.so
--
-- The following REQUIRED packages have not been found:
* MPI
CMake Error at /usr/share/cmake/Modules/FeatureSummary.cmake:556 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
CMakeLists.txt:6 (feature_summary)
-- Configuring incomplete, errors occurred!
See also "/home/alin/playground/cmake/summary/build/CMakeFiles/
CMakeOutput.log".
if I replace Fortran as language with C all is fine as expected. (The same
happens if I add C to the project)
A simple simple way to reproduce is the following CMakeLists.txt
project(testM Fortran)
cmake_minimum_required(VERSION 2.8)
include(FeatureSummary)
find_package(MPI REQUIRED)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
I see this on linux cmake 3.4.3
I wonder if this is a bug or a feature?
Regards,
Alin
--
Without Questions there are no Answers!
______________________________________________________________________
Dr. Alin Marin ELENA
http://alin.elena.space/
______________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160208/5a57034c/attachment-0001.sig>
More information about the cmake-developers
mailing list