summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalProjectLocal
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-10-28 09:52:16 (GMT)
committerBrad King <brad.king@kitware.com>2014-10-31 15:34:04 (GMT)
commit98cdb658e481a23c48ad894bec102ec5f060d72e (patch)
tree8bd706f83e9d7e7b0ad2eefac535a33cd139091b /Tests/ExternalProjectLocal
parent36cf8a1eb9eaa6d01a434d007f707be972e6e383 (diff)
downloadCMake-98cdb658e481a23c48ad894bec102ec5f060d72e.zip
CMake-98cdb658e481a23c48ad894bec102ec5f060d72e.tar.gz
CMake-98cdb658e481a23c48ad894bec102ec5f060d72e.tar.bz2
ExternalProject: Add CMAKE_CACHE_DEFAULT_ARGS arguments
This argument allows to set default arguments that are written in the initial cache file, but that are not forced, and therefore allows the user to change these values later (CMAKE_ARGS and CMAKE_CACHE_ARGS always overwrite the values). Also add some documentation to explain the differences between these 3 arguments. Extend ExternalProjectLocal test to cover CMAKE_CACHE_DEFAULT_ARGS.
Diffstat (limited to 'Tests/ExternalProjectLocal')
-rw-r--r--Tests/ExternalProjectLocal/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/ExternalProjectLocal/CMakeLists.txt b/Tests/ExternalProjectLocal/CMakeLists.txt
index f942197..cbbb555 100644
--- a/Tests/ExternalProjectLocal/CMakeLists.txt
+++ b/Tests/ExternalProjectLocal/CMakeLists.txt
@@ -66,6 +66,7 @@ if(can_build_tutorial_step5)
ExternalProject_Add(${proj}
URL "${CMAKE_CURRENT_SOURCE_DIR}/../Tutorial/Step5"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -G ${CMAKE_GENERATOR} <SOURCE_DIR>
+ CMAKE_CACHE_DEFAULT_ARGS -DUSE_MYMATH:BOOL=OFF
TEST_AFTER_INSTALL 1
LOG_TEST 1
)