diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2019-01-29 02:06:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-30 15:47:24 (GMT) |
commit | 198650ae7399cc086c49e58b0a9e03e9efb86235 (patch) | |
tree | a0e27ca7fe9bd39fac7545a299f16141016c4d80 /Tests/RunCMake | |
parent | d75fec5a88f81a8c16cdeab46766e92a14d1d3cf (diff) | |
download | CMake-198650ae7399cc086c49e58b0a9e03e9efb86235.zip CMake-198650ae7399cc086c49e58b0a9e03e9efb86235.tar.gz CMake-198650ae7399cc086c49e58b0a9e03e9efb86235.tar.bz2 |
set: warn if CACHE type is not recognized
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/set/RunCMakeTest.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/set/UnknownCacheType-stderr.txt | 5 | ||||
-rw-r--r-- | Tests/RunCMake/set/UnknownCacheType.cmake | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/set/RunCMakeTest.cmake b/Tests/RunCMake/set/RunCMakeTest.cmake index b8e8cf1..ea63d0b 100644 --- a/Tests/RunCMake/set/RunCMakeTest.cmake +++ b/Tests/RunCMake/set/RunCMakeTest.cmake @@ -3,3 +3,4 @@ include(RunCMake) run_cmake(ParentScope) run_cmake(ParentPulling) run_cmake(ParentPullingRecursive) +run_cmake(UnknownCacheType) diff --git a/Tests/RunCMake/set/UnknownCacheType-stderr.txt b/Tests/RunCMake/set/UnknownCacheType-stderr.txt new file mode 100644 index 0000000..6e1c811 --- /dev/null +++ b/Tests/RunCMake/set/UnknownCacheType-stderr.txt @@ -0,0 +1,5 @@ +CMake Warning \(dev\) at UnknownCacheType.cmake:1 \(set\): + implicitly converting 'unknown_type_sample' to 'STRING' type. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) +This warning is for project developers. Use -Wno-dev to suppress it. diff --git a/Tests/RunCMake/set/UnknownCacheType.cmake b/Tests/RunCMake/set/UnknownCacheType.cmake new file mode 100644 index 0000000..f2b5d05 --- /dev/null +++ b/Tests/RunCMake/set/UnknownCacheType.cmake @@ -0,0 +1 @@ +set (sample_key sample_value CACHE unknown_type_sample "sample doc") |