From 29914ec821a36414eab223d242f103a1c8660c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Ga=C3=9Fmann?= Date: Wed, 2 Aug 2017 16:32:31 +0200 Subject: [PATCH] [Findsodium.cmake] DON'T OVERWRITE LIBRARY SUFFIXES (#576) --- contrib/Findsodium.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/Findsodium.cmake b/contrib/Findsodium.cmake index ad7031e5..9d306d15 100644 --- a/contrib/Findsodium.cmake +++ b/contrib/Findsodium.cmake @@ -130,6 +130,7 @@ elseif (WIN32) PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX} ) if (NOT sodium_USE_STATIC_LIBS) + set(CMAKE_FIND_LIBRARY_SUFFIXES_BCK ${CMAKE_FIND_LIBRARY_SUFFIXES}) set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll") find_library(sodium_DLL_DEBUG libsodium HINTS ${sodium_DIR} @@ -139,6 +140,7 @@ elseif (WIN32) HINTS ${sodium_DIR} PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX} ) + set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_BCK}) endif() elseif(_GCC_COMPATIBLE)