diff options
author | Aurélien Gâteau <agateau@kde.org> | 2014-05-14 15:08:22 +0200 |
---|---|---|
committer | Aurélien Gâteau <agateau@kde.org> | 2014-05-14 16:50:44 +0200 |
commit | cb30eb91b8a0265c620e155b4b2acf916cab20a6 (patch) | |
tree | 3dfba447b6bdf8b995f05839d2e7ccd9bfea2a39 /tests/KDEInstallDirsTest/not_cache_variable | |
parent | b02aac922797f9dbaaf35de54de61a1167984e51 (diff) | |
download | extra-cmake-modules-cb30eb91b8a0265c620e155b4b2acf916cab20a6.tar.gz extra-cmake-modules-cb30eb91b8a0265c620e155b4b2acf916cab20a6.tar.bz2 |
Do not fail if vars like CMAKE_INSTALL_LIBDIR are defined as normal vars
REVIEW: 118127
Diffstat (limited to 'tests/KDEInstallDirsTest/not_cache_variable')
-rw-r--r-- | tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt b/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt new file mode 100644 index 00000000..b78c10d7 --- /dev/null +++ b/tests/KDEInstallDirsTest/not_cache_variable/CMakeLists.txt @@ -0,0 +1,7 @@ +# Test KDEInstallDirs does not crash if a variable like CMAKE_INSTALL_LIBDIR is +# defined but is not a cache variable. +cmake_minimum_required(VERSION 2.8) +set(kde_modules_dir ${CMAKE_SOURCE_DIR}/../../../kde-modules) + +set(CMAKE_INSTALL_LIBDIR "foo") +include(${kde_modules_dir}/KDEInstallDirs.cmake) |