Enable Fortran tests for IDE builds.
This commit is contained in:
parent
555f589a5a
commit
539a822c8c
|
@ -1926,9 +1926,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
|||
ENDIF ("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
||||
ENDIF()
|
||||
|
||||
# fortran does not work for IDE builds because
|
||||
# CMAKE_STANDARD_LIBRARIES needs to be per language
|
||||
IF(CMAKE_TEST_GENERATOR MATCHES "Make|KDevelop")
|
||||
IF(CMAKE_Fortran_COMPILER)
|
||||
ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND}
|
||||
--build-and-test
|
||||
|
@ -1948,7 +1945,17 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
|||
ADD_TEST(FortranC.Flags ${CMAKE_CMAKE_COMMAND} -P
|
||||
${CMAKE_CURRENT_BINARY_DIR}/FortranC/Flags.cmake)
|
||||
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/FortranC/Flags")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
ADD_TEST(FortranC ${CMAKE_CTEST_COMMAND}
|
||||
--build-and-test
|
||||
"${CMake_SOURCE_DIR}/Tests/FortranC"
|
||||
"${CMake_BINARY_DIR}/Tests/FortranC"
|
||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
||||
--build-project FortranC
|
||||
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
||||
--build-two-config
|
||||
--test-command CMakeFiles/FortranCInterface/FortranCInterface)
|
||||
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/FortranC")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
|
Loading…
Reference in New Issue