summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-10-17 16:51:57 (GMT)
committerBrad King <brad.king@kitware.com>2008-10-17 16:51:57 (GMT)
commit32be27c6dee354b6f696b1fc7551ee6ca894fafc (patch)
treef508a8b6f874deb2cfe783cb82d35cc49978746e /Source/kwsys/CMakeLists.txt
parent4ed9faa830af81d6af536a685fb115dee5d0d746 (diff)
downloadCMake-32be27c6dee354b6f696b1fc7551ee6ca894fafc.zip
CMake-32be27c6dee354b6f696b1fc7551ee6ca894fafc.tar.gz
CMake-32be27c6dee354b6f696b1fc7551ee6ca894fafc.tar.bz2
BUG: Enforce KWSys component dependencies early
KWSys component dependencies must be enforced before any tests for enabled components are done. This moves the dependency enforcement code to be as early as possible.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 8424748..c3580c1 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -154,7 +154,20 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
SET(KWSYS_USE_SystemInformation 1)
SET(KWSYS_USE_CPU 1)
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
-
+
+# Enforce component dependencies.
+IF(KWSYS_USE_SystemTools)
+ SET(KWSYS_USE_Directory 1)
+ENDIF(KWSYS_USE_SystemTools)
+IF(KWSYS_USE_Glob)
+ SET(KWSYS_USE_Directory 1)
+ SET(KWSYS_USE_SystemTools 1)
+ SET(KWSYS_USE_RegularExpression 1)
+ENDIF(KWSYS_USE_Glob)
+IF(KWSYS_USE_Process)
+ SET(KWSYS_USE_System 1)
+ENDIF(KWSYS_USE_Process)
+
# Setup the large file support default.
IF(KWSYS_LFS_DISABLE)
SET(KWSYS_LFS_REQUESTED 0)
@@ -635,19 +648,6 @@ SET(KWSYS_HXX_FILES Configure String
auto_ptr
)
-# Enforce component dependencies.
-IF(KWSYS_USE_SystemTools)
- SET(KWSYS_USE_Directory 1)
-ENDIF(KWSYS_USE_SystemTools)
-IF(KWSYS_USE_Glob)
- SET(KWSYS_USE_Directory 1)
- SET(KWSYS_USE_SystemTools 1)
- SET(KWSYS_USE_RegularExpression 1)
-ENDIF(KWSYS_USE_Glob)
-IF(KWSYS_USE_Process)
- SET(KWSYS_USE_System 1)
-ENDIF(KWSYS_USE_Process)
-
# Add selected C++ classes.
SET(cppclasses
Directory DynamicLoader Glob RegularExpression SystemTools