mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 05:45:51 +00:00
7bd8cfb813
Use file(GENERATE) to write the initial cache file so that we can evaluate generator expressions. Use a per-config initial cache file name in case the content varies by configuration.
10 lines
363 B
CMake
10 lines
363 B
CMake
if(NOT CMAKE_CONFIGURATION_TYPES)
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
endif()
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(FOO TMP_DIR "${CMAKE_CURRENT_BINARY_DIR}/tmp"
|
|
DOWNLOAD_COMMAND ""
|
|
CMAKE_CACHE_ARGS "-DFOO:STRING=$<1:BAR>$<0:BAD>"
|
|
CMAKE_CACHE_DEFAULT_ARGS "-DBAR:STRING=$<1:BAZ>$<0:BAD>")
|