Try setting LINK_SEARCH_END_STATIC

This commit is contained in:
Frank Denis 2019-06-01 13:00:04 +02:00
parent c78fe77559
commit 8bd7ec0197

View file

@ -54,6 +54,7 @@ add_executable(minisign
target_include_directories(minisign PUBLIC ${sodium_INCLUDE_DIR})
if(LIBSODIUM_STATIC)
set_target_properties(minisign PROPERTIES LINK_SEARCH_END_STATIC ON)
target_compile_options(minisign PUBLIC ${LIBSODIUM_STATIC_CFLAGS} ${LIBSODIUM_CFLAGS_STATIC_OTHER})
target_link_libraries(minisign ${LIBSODIUM_STATIC_LDFLAGS} ${LIBSODIUM_STATIC_LDFLAGS_OTHER})
else(LIBSODIUM_STATIC)