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.
This commit is contained in:
parent
91de0b09ef
commit
6a906befae
@ -122,6 +122,14 @@ ENDIF(KWSYS_STANDALONE)
|
|||||||
# The project name is that of the specified namespace.
|
# The project name is that of the specified namespace.
|
||||||
PROJECT(${KWSYS_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.
|
# Select library components.
|
||||||
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||||
SET(KWSYS_ENABLE_C 1)
|
SET(KWSYS_ENABLE_C 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user