[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.14 1.15
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Aug 3 13:37:30 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/TryCompile
In directory public:/mounts/ram/cvs-serv32314/Tests/TryCompile
Modified Files:
CMakeLists.txt
Log Message:
Test try_compile project mode
The try_compile command project mode builds an entire source tree
instead of one source file. It uses an existing CMakeLists.txt file in
the given source tree instead of generating one. This commit creates a
test for the mode in the TryCompile test.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/TryCompile/CMakeLists.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -C 2 -d -r1.14 -r1.15
*** CMakeLists.txt 16 Jul 2008 13:29:56 -0000 1.14
--- CMakeLists.txt 3 Aug 2009 17:37:28 -0000 1.15
***************
*** 107,110 ****
--- 107,117 ----
ENDIF(CMAKE_ANSI_FOR_SCOPE)
+ MESSAGE("Testing try_compile project mode")
+ TRY_COMPILE(TEST_INNER
+ ${TryCompile_BINARY_DIR}/CMakeFiles/Inner
+ ${TryCompile_SOURCE_DIR}/Inner
+ TryCompileInner)
+ TEST_ASSERT(TEST_INNER "try_compile project mode failed")
+
ADD_EXECUTABLE(TryCompile pass.c)
More information about the Cmake-commits
mailing list