mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
58d9950842
Fixes: #27044
14 lines
312 B
CMake
14 lines
312 B
CMake
project(PerConfigGeneration CXX)
|
|
|
|
set(config ${CMAKE_BUILD_TYPE})
|
|
if(NOT config)
|
|
set(config noconfig)
|
|
endif()
|
|
|
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/build_type.cmake" "set(config \"${config}\")")
|
|
|
|
add_library(foo foo.cxx)
|
|
|
|
install(TARGETS foo EXPORT foo)
|
|
install(PACKAGE_INFO foo DESTINATION cps EXPORT foo)
|