[Findsodium.cmake] DON'T OVERWRITE LIBRARY SUFFIXES (#576)

This commit is contained in:
Henrik Gaßmann 2017-08-02 16:32:31 +02:00 committed by Frank Denis
parent f02770b2ad
commit 29914ec821

View File

@ -130,6 +130,7 @@ elseif (WIN32)
PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX} PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX}
) )
if (NOT sodium_USE_STATIC_LIBS) if (NOT sodium_USE_STATIC_LIBS)
set(CMAKE_FIND_LIBRARY_SUFFIXES_BCK ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll") set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll")
find_library(sodium_DLL_DEBUG libsodium find_library(sodium_DLL_DEBUG libsodium
HINTS ${sodium_DIR} HINTS ${sodium_DIR}
@ -139,6 +140,7 @@ elseif (WIN32)
HINTS ${sodium_DIR} HINTS ${sodium_DIR}
PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX} PATH_SUFFIXES ${_RELEASE_PATH_SUFFIX}
) )
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_BCK})
endif() endif()
elseif(_GCC_COMPATIBLE) elseif(_GCC_COMPATIBLE)