diff options
author | David Cole <david.cole@kitware.com> | 2011-02-02 23:18:14 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-02-02 23:18:14 (GMT) |
commit | 94d1684a8fd0de4310874cd582636a8e26402da2 (patch) | |
tree | 1c0d1dbdb4f8aedc046d6c6329002ce87f679ea7 /Tests/CMakeTests | |
parent | 4f1e1fe7821da7d5af17d18f031f72daa05c89e1 (diff) | |
download | CMake-94d1684a8fd0de4310874cd582636a8e26402da2.zip CMake-94d1684a8fd0de4310874cd582636a8e26402da2.tar.gz CMake-94d1684a8fd0de4310874cd582636a8e26402da2.tar.bz2 |
Add CMAKE_SCRIPT_MODE_FILE variable (#2828)
New CMake variable is set when processing a -P script file,
but not when configuring a project.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/StringTestScript.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeTests/StringTestScript.cmake b/Tests/CMakeTests/StringTestScript.cmake index 3703856..d1db2ee 100644 --- a/Tests/CMakeTests/StringTestScript.cmake +++ b/Tests/CMakeTests/StringTestScript.cmake @@ -194,6 +194,8 @@ elseif(testname STREQUAL random_with_various_alphabets) # pass string(RANDOM LENGTH 78 ALPHABET "~`!@#$%^&*()_-+={}[]\\|:\\;'\",.<>/?" v) message(STATUS "v='${v}'") + message(STATUS "CMAKE_SCRIPT_MODE_FILE='${CMAKE_SCRIPT_MODE_FILE}'") + else() # fail message(FATAL_ERROR "testname='${testname}' - error: no such test in '${CMAKE_CURRENT_LIST_FILE}'") |