[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.15 1.16

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Aug 4 14:37:48 EDT 2009


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

Modified Files:
	CMakeLists.txt 
Log Message:
No /fast targets in try_compile project mode

The try_compile command builds the cmTryCompileExec executable using the
cmTryCompileExec/fast target with Makefile generators in order to save
time since dependencies are not needed.  However, in project mode the
command builds an entire source tree that may have dependencies.
Therefore we can use the /fast target approach only in one-source mode.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/TryCompile/CMakeLists.txt,v
retrieving revision 1.15
retrieving revision 1.16
diff -C 2 -d -r1.15 -r1.16
*** CMakeLists.txt	3 Aug 2009 17:37:28 -0000	1.15
--- CMakeLists.txt	4 Aug 2009 18:37:46 -0000	1.16
***************
*** 111,116 ****
    ${TryCompile_BINARY_DIR}/CMakeFiles/Inner
    ${TryCompile_SOURCE_DIR}/Inner
!   TryCompileInner)
! TEST_ASSERT(TEST_INNER "try_compile project mode failed")
  
  ADD_EXECUTABLE(TryCompile pass.c)
--- 111,117 ----
    ${TryCompile_BINARY_DIR}/CMakeFiles/Inner
    ${TryCompile_SOURCE_DIR}/Inner
!   TryCompileInner innerexe
!   OUTPUT_VARIABLE output)
! TEST_ASSERT(TEST_INNER "try_compile project mode failed:\n${output}")
  
  ADD_EXECUTABLE(TryCompile pass.c)



More information about the Cmake-commits mailing list