diff options
author | Brad King <brad.king@kitware.com> | 2003-06-20 18:10:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-20 18:10:28 (GMT) |
commit | 653cb84f6687818740a6d80fa87880ca4654b06e (patch) | |
tree | 27b4a26483b7f8f28d8b2757be0f850be11c1751 /Source/kwsys | |
parent | bf59bd27069a9eace1bcf96d6636a709d611491e (diff) | |
download | CMake-653cb84f6687818740a6d80fa87880ca4654b06e.zip CMake-653cb84f6687818740a6d80fa87880ca4654b06e.tar.gz CMake-653cb84f6687818740a6d80fa87880ca4654b06e.tar.bz2 |
ENH: Changed configuration of header directory to specify it without the namespace.
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 620cda9..2eafc9d 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -29,11 +29,13 @@ # # Optional settings are as follows: # -# KWSYS_HEADER_DIR = The directory into which to generate the kwsys headers. +# KWSYS_HEADER_ROOT = The directory into which to generate the kwsys headers. +# A directory called "${KWSYS_NAMESPACE}" will be +# created under this root directory to hold the files. # # Example: # -# SET(KWSYS_HEADER_DIR ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}) +# SET(KWSYS_HEADER_ROOT ${CMAKE_CURRENT_BINARY_DIR}) # INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) # # KWSYS_LIBRARY_INSTALL_DIR = The installation target directories into @@ -141,9 +143,10 @@ SET(KWSYS_NO_ANSI_STRING_STREAM ${CMAKE_NO_ANSI_STRING_STREAM}) #----------------------------------------------------------------------------- # Choose a directory for the generated headers. -IF(NOT KWSYS_HEADER_DIR) - SET(KWSYS_HEADER_DIR "${PROJECT_BINARY_DIR}/${KWSYS_NAMESPACE}") -ENDIF(NOT KWSYS_HEADER_DIR) +IF(NOT KWSYS_HEADER_ROOT) + SET(KWSYS_HEADER_ROOT "${PROJECT_BINARY_DIR}") +ENDIF(NOT KWSYS_HEADER_ROOT) +SET(KWSYS_HEADER_DIR "${KWSYS_HEADER_ROOT}/${KWSYS_NAMESPACE}") #----------------------------------------------------------------------------- # Create STL header wrappers to block warnings in the STL headers and @@ -334,7 +337,7 @@ ENDIF(KWSYS_USE_Process) #----------------------------------------------------------------------------- # Setup testing if not being built as part of another project. IF(KWSYS_STANDALONE) - INCLUDE_DIRECTORIES(${KWSYS_HEADER_DIR}/..) + INCLUDE_DIRECTORIES(${KWSYS_HEADER_ROOT}) ADD_EXECUTABLE(testProcess testProcess.c) ADD_EXECUTABLE(test1 test1.cxx) TARGET_LINK_LIBRARIES(testProcess ${KWSYS_NAMESPACE}) |