[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.167 1.168

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Dec 14 12:36:16 EST 2009


Update of /cvsroot/CMake/CMake/Tests
In directory public:/mounts/ram/cvs-serv6518/Tests

Modified Files:
	CMakeLists.txt 
Log Message:
Test FortranCInterface flag propagation

We create test FortranC.Flags to try passing per-language flags from a
project into its FortranCInterface detect/verify checks.  We wrap the
compilers with scripts that enforce presence of expected flags.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeLists.txt,v
retrieving revision 1.167
retrieving revision 1.168
diff -C 2 -d -r1.167 -r1.168
*** CMakeLists.txt	10 Dec 2009 17:16:35 -0000	1.167
--- CMakeLists.txt	14 Dec 2009 17:36:05 -0000	1.168
***************
*** 1486,1489 ****
--- 1486,1498 ----
          --test-command testf)
        LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Fortran")
+ 
+       # FortranCInterface tests.
+       IF(UNIX)
+         CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/FortranC/Flags.cmake.in
+                        ${CMAKE_CURRENT_BINARY_DIR}/FortranC/Flags.cmake @ONLY)
+         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()
      ENDIF()
    ENDIF()



More information about the Cmake-commits mailing list