mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
13 lines
384 B
CMake
13 lines
384 B
CMake
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
if(_isMultiConfig)
|
|
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
|
|
else()
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "" FORCE)
|
|
endif()
|
|
endif()
|
|
|
|
project(Config C)
|
|
add_library(foo ${CMAKE_CURRENT_LIST_DIR}/test.c)
|
|
install(TARGETS foo EXPORT foo DESTINATION .)
|