mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
In commit v3.11.0-rc1~68^2 (CPack: accept --trace and --trace-expand, 2017-12-09) a nullptr dereference was added that occurs when `cpack -G NotAGenerator` is invoked. Add the needed condition. Fixes: #17900
11 lines
325 B
CMake
11 lines
325 B
CMake
include(RunCMake)
|
|
set(RunCMake_TEST_TIMEOUT 60)
|
|
|
|
file(WRITE "${RunCMake_BINARY_DIR}/NotAGenerator-build/CPackConfig.cmake" [[
|
|
set(CPACK_PACKAGE_NAME "Test")
|
|
set(CPACK_PACKAGE_VERSION "1")
|
|
]])
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
run_cmake_command(NotAGenerator ${CMAKE_CPACK_COMMAND} -G NotAGenerator)
|
|
unset(RunCMake_TEST_NO_CLEAN)
|