ENH: only try to use fortran if the generator is make based
This commit is contained in:
parent
4cf0f5b5ca
commit
5971857544
@ -636,23 +636,26 @@ IF(BUILD_TESTING)
|
|||||||
)
|
)
|
||||||
|
|
||||||
ENDIF (CTEST_TEST_CTEST)
|
ENDIF (CTEST_TEST_CTEST)
|
||||||
# see if we can find a fortran compiler on the machine
|
IF(CMAKE_GENERATOR MATCHES "Makefiles")
|
||||||
# if so, add the fortran test and see if it works.
|
# see if we can find a fortran compiler on the machine
|
||||||
SET(CMAKE_Fortran_COMPILER_LIST ifort ifc efc f95 pgf95
|
# if so, add the fortran test and see if it works.
|
||||||
lf95 xlf95 fort gfortran f90 pgf90 xlf90 epcf90 f77 fort77 frt pgf77 xlf fl32 af77 g77 )
|
SET(CMAKE_Fortran_COMPILER_LIST ifort ifc efc f95 pgf95
|
||||||
FIND_PROGRAM(CMAKE_Fortran_COMPILER_FULLPATH NAMES ${CMAKE_Fortran_COMPILER_LIST} )
|
lf95 xlf95 fort gfortran f90 pgf90 xlf90 epcf90 f77
|
||||||
MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER_FULLPATH)
|
fort77 frt pgf77 xlf fl32 af77 g77 )
|
||||||
IF(CMAKE_Fortran_COMPILER_FULLPATH)
|
FIND_PROGRAM(CMAKE_Fortran_COMPILER_FULLPATH NAMES ${CMAKE_Fortran_COMPILER_LIST} )
|
||||||
ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND}
|
MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER_FULLPATH)
|
||||||
--build-and-test
|
IF(CMAKE_Fortran_COMPILER_FULLPATH)
|
||||||
"${CMake_SOURCE_DIR}/Tests/Fortran"
|
ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND}
|
||||||
"${CMake_BINARY_DIR}/Tests/Fortran"
|
--build-and-test
|
||||||
--build-generator ${CMAKE_GENERATOR}
|
"${CMake_SOURCE_DIR}/Tests/Fortran"
|
||||||
--build-project Simple
|
"${CMake_BINARY_DIR}/Tests/Fortran"
|
||||||
--build-makeprogram ${MAKEPROGRAM}
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
--build-two-config
|
--build-project Simple
|
||||||
--test-command testf)
|
--build-makeprogram ${MAKEPROGRAM}
|
||||||
ENDIF(CMAKE_Fortran_COMPILER_FULLPATH)
|
--build-two-config
|
||||||
|
--test-command testf)
|
||||||
|
ENDIF(CMAKE_Fortran_COMPILER_FULLPATH)
|
||||||
|
ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
|
||||||
|
|
||||||
IF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE OR WXWINDOWS_INCLUDE_DIR)
|
IF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE OR WXWINDOWS_INCLUDE_DIR)
|
||||||
# Will be set if the wxwindows gui is on
|
# Will be set if the wxwindows gui is on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user