diff options
author | Brad King <brad.king@kitware.com> | 2020-12-22 00:25:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-22 02:27:35 (GMT) |
commit | 3af067101959c0877d34d6e9fda3b15a4adba08a (patch) | |
tree | e5ff6be1afc0060d1e279c2c727378b572c2e121 /Tests | |
parent | 81809d1485a0b05c85f7f5b57adfc20c169c5a44 (diff) | |
download | CMake-3af067101959c0877d34d6e9fda3b15a4adba08a.zip CMake-3af067101959c0877d34d6e9fda3b15a4adba08a.tar.gz CMake-3af067101959c0877d34d6e9fda3b15a4adba08a.tar.bz2 |
Tests: Fix ConfigSources test with empty CMAKE_BUILD_TYPE
The test requires a non-empty `CMAKE_BUILD_TYPE` to function on
single-config generators. Force a non-empty configuration if the test
is configured explicitly with empty `-DCMAKE_BUILD_TYPE=`.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/ConfigSources/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/ConfigSources/CMakeLists.txt b/Tests/ConfigSources/CMakeLists.txt index 1db00cc..9eed1c0 100644 --- a/Tests/ConfigSources/CMakeLists.txt +++ b/Tests/ConfigSources/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.0) get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(NOT _isMultiConfig AND NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build") + set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build" FORCE) endif() project(ConfigSources CXX) |