summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-22 19:58:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-22 19:58:13 (GMT)
commit472966ed5f1cae85dd93431ebe5ebb8fee4c6d23 (patch)
tree248be7a65160c356892862551b2b28eda28fc64f /Source/kwsys/CMakeLists.txt
parente7601ca600ff6a183e85e0cc9408547adefd7e86 (diff)
downloadCMake-472966ed5f1cae85dd93431ebe5ebb8fee4c6d23.zip
CMake-472966ed5f1cae85dd93431ebe5ebb8fee4c6d23.tar.gz
CMake-472966ed5f1cae85dd93431ebe5ebb8fee4c6d23.tar.bz2
Can not use cmakedefine in kwsys because bootstrap of cmake does not support it.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 07d54ca..34df847 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -139,11 +139,16 @@ IF(COMMAND SET_PROPERTY)
"KWSYS_HEADER(%)=<${KWSYS_NAMESPACE}/%>"
)
ENDIF(COMMAND SET_PROPERTY)
+# add option to disable memory cleanup at exit of putenv memory
+IF(DEFINED KWSYS_DO_NOT_CLEAN_PUTENV)
+ SET(KWSYS_DO_NOT_CLEAN_PUTENV 1)
+ELSE(DEFINED KWSYS_DO_NOT_CLEAN_PUTENV)
+ SET(KWSYS_DO_NOT_CLEAN_PUTENV 0)
+ENDIF(DEFINED KWSYS_DO_NOT_CLEAN_PUTENV)
# Select library components.
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
SET(KWSYS_ENABLE_C 1)
-
# Enable all components.
SET(KWSYS_USE_Base64 1)
SET(KWSYS_USE_Directory 1)