[cmake-commits] king committed CMakeLists.txt 1.35 1.36
notInAllLib.cxx NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Oct 2 11:14:02 EDT 2006
Update of /cvsroot/CMake/CMake/Tests/Complex/Library
In directory public:/mounts/ram/cvs-serv23561/Tests/Complex/Library
Modified Files:
CMakeLists.txt
Added Files:
notInAllLib.cxx
Log Message:
ENH: Added NOT_IN_ALL option for ADD_LIBRARY and ADD_EXECUTABLE to avoid building the targets by default.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Complex/Library/CMakeLists.txt,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- CMakeLists.txt 28 Sep 2006 14:41:19 -0000 1.35
+++ CMakeLists.txt 2 Oct 2006 15:14:00 -0000 1.36
@@ -103,6 +103,9 @@
INSTALL_FILES(/tmp .h ${Complex_BINARY_DIR}/cmTestConfigure.h)
INSTALL_FILES(/tmp .cxx ${Complex_BINARY_DIR}/cmTestConfigure.h)
+# Test creating a library that is not built by default.
+ADD_LIBRARY(notInAllLib NOT_IN_ALL notInAllLib.cxx)
+
# Test generation of preprocessed sources.
IF("${CMAKE_GENERATOR}" MATCHES "Makefile" AND CMAKE_MAKE_PROGRAM)
IF(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE)
--- NEW FILE: notInAllLib.cxx ---
int notInAllLibFunc() { return 0; }
#if 1
# error "This target should not be compiled by ALL."
#endif
More information about the Cmake-commits
mailing list