summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorVitaly Lipatov <lav@etersoft.ru>2020-01-30 10:55:42 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-30 14:14:47 (GMT)
commitc18ed7236db5720bab383e6de78415177922bff3 (patch)
treee86ce6be824a8cb0af5abf839533b561879a6bd4 /Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
parent7dd5ca66c911a422878f53d998eb457297eaf804 (diff)
downloadCMake-c18ed7236db5720bab383e6de78415177922bff3.zip
CMake-c18ed7236db5720bab383e6de78415177922bff3.tar.gz
CMake-c18ed7236db5720bab383e6de78415177922bff3.tar.bz2
GNUInstallDirs: Warn when CMAKE_SYSTEM_NAME is not set
If a project writes `include(GNUInstallDirs)` before `project()` then `CMAKE_SYSTEM_NAME` may not be set and an incorrect `LIBDIR` may be computed. Warn about this case.
Diffstat (limited to 'Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
index d671ee0..eb2c1a2 100644
--- a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
+++ b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
@@ -16,4 +16,7 @@ foreach(case
)
set(RunCMake-stderr-file ${case}${variant}-stderr.txt)
run_cmake(${case})
+ unset(RunCMake-stderr-file)
endforeach()
+
+run_cmake(NoSystem)