diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-03-18 15:41:41 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-03-18 15:41:41 (GMT) |
commit | 345cf0401235a1fd64bb9b1c353e0e3fc848d666 (patch) | |
tree | 6c1862e3516cd436f3068221ae9fcc11144724b8 /Tests | |
parent | 1f9df24ba7e76cbd7ecc1816a9f8d46b61816e95 (diff) | |
download | CMake-345cf0401235a1fd64bb9b1c353e0e3fc848d666.zip CMake-345cf0401235a1fd64bb9b1c353e0e3fc848d666.tar.gz CMake-345cf0401235a1fd64bb9b1c353e0e3fc848d666.tar.bz2 |
ENH: big change that includes immediate subdir support, removing the notion of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/OutOfSource/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/OutOfSource/SubDir/CMakeLists.txt | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt index 75b48b6..e6c4f97 100644 --- a/Tests/OutOfSource/CMakeLists.txt +++ b/Tests/OutOfSource/CMakeLists.txt @@ -1,3 +1,6 @@ # a simple test case PROJECT (OutOfSource) -SUBDIRS(SubDir) + +ADD_SUBDIRECTORY(SubDir) + +SET(KEN 1) diff --git a/Tests/OutOfSource/SubDir/CMakeLists.txt b/Tests/OutOfSource/SubDir/CMakeLists.txt index 905f2bc..13b8c88 100644 --- a/Tests/OutOfSource/SubDir/CMakeLists.txt +++ b/Tests/OutOfSource/SubDir/CMakeLists.txt @@ -1,2 +1,3 @@ # subdir to a sibling dir -SUBDIRS(${PROJECT_SOURCE_DIR}/OutOfSourceSubdir) +MESSAGE ("Ken is ${KEN}") +SUBDIRS(${PROJECT_SOURCE_DIR}/${KEN}OutOfSourceSubdir) |