CMAKE_CACHE_DEFAULT_ARGS.cmake 373 Bytes
Newer Older
1
2
3
if(NOT CMAKE_CONFIGURATION_TYPES)
  set(CMAKE_BUILD_TYPE Debug)
endif()
4
5
include(ExternalProject)

6
ExternalProject_Add(FOO TMP_DIR "${CMAKE_CURRENT_BINARY_DIR}/tmp"
7
                        DOWNLOAD_COMMAND ""
8
9
10
                        CMAKE_CACHE_DEFAULT_ARGS
                            "-DFOO:STRING=$<1:BAR>$<0:BAD>"
                            "-DTEST_LIST:STRING=A;B;C")