CMake/Tests/RunCMake/CPackCommandLine/MultiConfig.cmake
Brad King 1d1fa5d3e4 Tests: Add RunCMake.CPackCommandLine case for multi-config package
In commit da5ac4bb60 (cpack: Add `CPACK_INSTALL_CMAKE_CONFIGURATIONS`
variable, 2019-07-10, v3.16.0-rc1~165^2) we added support for running
the `cpack -C ...` command-line with multiple configurations.  Add an
explicit test for this.

Fixes: #19918
2019-11-11 14:16:48 -05:00

10 lines
189 B
CMake

enable_language(C)
include(CPack)
add_library(foo foo.c)
set_property(TARGET foo PROPERTY DEBUG_POSTFIX _dbg)
set_property(TARGET foo PROPERTY RELEASE_POSTFIX _rel)
install(TARGETS foo)