Skip to content

Commit

Permalink
[Findsodium.cmake] DON'T OVERWRITE LIBRARY SUFFIXES (jedisct1#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningEnlightenment authored and jedisct1 committed Aug 2, 2017
1 parent f02770b commit 29914ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/Findsodium.cmake
Expand Up @@ -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}
Expand All @@ -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)
Expand Down

0 comments on commit 29914ec

Please sign in to comment.