CMAKE_CACHE_ARGS.cmake 282 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
                        CMAKE_CACHE_ARGS "-DFOO:STRING=$<1:BAR>$<0:BAD>")