mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
34c8a23044
Scriplet tags should not be added to generated spec files if scripts weren't provided as those tags are otherwise present in generated rpm file even if the script wasn't provided thereby generating unneeded dependency on shell. Fixes: #21345
12 lines
291 B
CMake
12 lines
291 B
CMake
function(get_test_prerequirements found_var config_file)
|
|
if(SUBTEST_SUFFIX MATCHES ".*single_debug_info")
|
|
include(${config_file})
|
|
|
|
if(OBJDUMP_EXECUTABLE)
|
|
set(${found_var} true PARENT_SCOPE)
|
|
endif()
|
|
else()
|
|
set(${found_var} true PARENT_SCOPE)
|
|
endif()
|
|
endfunction()
|