mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
Tests: don't use broken makensis
Some distros (OS Elbrus less than 7.0) have unrunnable makensis. While performing tests, this condition is now checked, and NSIS CPack generator test is not performed.
This commit is contained in:
1 parent
f11c12f9c8
commit
7545d1ca9f
1 file changed
+5
-2
@@ -1056,8 +1056,11 @@ if(BUILD_TESTING)
|
||||
endif()
|
||||
endif()
|
||||
if(NSIS_MAKENSIS_EXECUTABLE)
|
||||
set(CPackComponents_BUILD_OPTIONS ${CPackComponents_BUILD_OPTIONS}
|
||||
-DCPACK_BINARY_NSIS:BOOL=ON)
|
||||
execute_process(COMMAND ${NSIS_MAKENSIS_EXECUTABLE} "-VERSION" ERROR_QUIET OUTPUT_QUIET RESULT_VARIABLE NSIS_OK)
|
||||
if("${NSIS_OK}" STREQUAL "0")
|
||||
set(CPackComponents_BUILD_OPTIONS ${CPackComponents_BUILD_OPTIONS}
|
||||
-DCPACK_BINARY_NSIS:BOOL=ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_test(CPackComponents ${CMAKE_CTEST_COMMAND}
|
||||
|
||||
Reference in new issue
Block a user