This commit is contained in:
Frank Denis 2019-06-01 15:19:51 +02:00
parent 25508229e4
commit 2a20f7d920

View file

@ -52,6 +52,10 @@ add_executable(minisign
src/minisign.c)
if(STATIC_LIBSODIUM)
if(BUILD_STATIC_EXECUTABLES)
set_target_properties(minisign PROPERTIES LINK_SEARCH_START_STATIC 1)
set_target_properties(minisign PROPERTIES LINK_SEARCH_END_STATIC 1)
endif()
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
endif()