[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.138 1.139
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed May 14 11:55:43 EDT 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv18376/Source/kwsys
Modified Files:
CMakeLists.txt
Log Message:
ENH: In KWSys set the IMPLICIT_DEPENDS_INCLUDE_TRANSFORM property.
- Tells CMake about the KWSYS_HEADER macro.
- Enables implicit dependencies of private source files.
- When a CMake new enough to support the property is required
the "#if 0" hack can be removed from the source files.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/CMakeLists.txt,v
retrieving revision 1.138
retrieving revision 1.139
diff -C 2 -d -r1.138 -r1.139
*** CMakeLists.txt 17 Mar 2008 20:22:28 -0000 1.138
--- CMakeLists.txt 14 May 2008 15:55:41 -0000 1.139
***************
*** 123,126 ****
--- 123,134 ----
PROJECT(${KWSYS_NAMESPACE})
+ # Tell CMake how to follow dependencies of sources in this directory.
+ IF(COMMAND SET_PROPERTY)
+ SET_PROPERTY(DIRECTORY
+ PROPERTY IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
+ "KWSYS_HEADER(%)=<${KWSYS_NAMESPACE}/%>"
+ )
+ ENDIF(COMMAND SET_PROPERTY)
+
# Select library components.
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
More information about the Cmake-commits
mailing list