diff options
author | Brad King <brad.king@kitware.com> | 2008-05-14 15:55:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-14 15:55:41 (GMT) |
commit | 6a906befaeebf8542f20bf0b29999b0d3ff38856 (patch) | |
tree | 21298cf46312f372e0d786e211e9a30e7a21491c /Source | |
parent | 91de0b09ef468138ec0f11ea90c90f1e2162e077 (diff) | |
download | CMake-6a906befaeebf8542f20bf0b29999b0d3ff38856.zip CMake-6a906befaeebf8542f20bf0b29999b0d3ff38856.tar.gz CMake-6a906befaeebf8542f20bf0b29999b0d3ff38856.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 07a3d2d..3cebc55 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -122,6 +122,14 @@ ENDIF(KWSYS_STANDALONE) # The project name is that of the specified namespace. 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) SET(KWSYS_ENABLE_C 1) |