[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.2 1.3 innerexe.c NONE 1.1 innerlib.c NONE 1.1

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


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

Modified Files:
	CMakeLists.txt 
Added Files:
	innerexe.c innerlib.c 
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.


--- NEW FILE: innerlib.c ---
int innerlib(void) { return 0; }

--- NEW FILE: innerexe.c ---
extern int innerlib(void);
int main() { return innerlib(); }

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/TryCompile/Inner/CMakeLists.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** CMakeLists.txt	3 Aug 2009 17:37:36 -0000	1.2
--- CMakeLists.txt	4 Aug 2009 18:37:46 -0000	1.3
***************
*** 11,13 ****
  endif()
  
! add_executable(inner ../pass.c)
--- 11,15 ----
  endif()
  
! add_library(innerlib innerlib.c)
! add_executable(innerexe innerexe.c)
! target_link_libraries(innerexe innerlib)



More information about the Cmake-commits mailing list