summaryrefslogtreecommitdiffstats
path: root/Tests/ConfigSources
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-22 00:25:49 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-22 02:27:35 (GMT)
commit3af067101959c0877d34d6e9fda3b15a4adba08a (patch)
treee5ff6be1afc0060d1e279c2c727378b572c2e121 /Tests/ConfigSources
parent81809d1485a0b05c85f7f5b57adfc20c169c5a44 (diff)
downloadCMake-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/ConfigSources')
-rw-r--r--Tests/ConfigSources/CMakeLists.txt2
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)