should fix: default empty strip command defined by openwrt toolchain #66 (#68)

FYI CMake documents: https://cmake.org/cmake/help/v3.0/command/if.html

Signed-off-by: peter-tank <30540412+peter-tank@users.noreply.github.com>
This commit is contained in:
peter-tank 2019-12-31 08:05:40 -06:00 committed by Frank Denis
parent 9727843b70
commit 0c45001d33

View file

@ -80,10 +80,10 @@ if(CMAKE_THREAD_LIBS_INIT)
target_link_libraries(minisign "${CMAKE_THREAD_LIBS_INIT}")
endif(CMAKE_THREAD_LIBS_INIT)
if (DEFINED CMAKE_STRIP)
if (COMMAND CMAKE_STRIP)
add_custom_command(TARGET minisign POST_BUILD
COMMAND ${CMAKE_STRIP} ${STRIP_FLAGS} $<TARGET_FILE:minisign>)
endif(DEFINED CMAKE_STRIP)
endif(COMMAND CMAKE_STRIP)
install(TARGETS minisign DESTINATION bin)