From 2a20f7d920e24cb6bbb200c402c1fcbda7d72700 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 1 Jun 2019 15:19:51 +0200 Subject: [PATCH] ... --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ed3496..10713c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()