Browse Source

Findsodium.cmake: Fix pkg-config checks

Test the correct variables for `pkg_check_modules`.

Per https://cmake.org/cmake/help/latest/module/FindPkgConfig.html
pull/5575/head
Gleb Mazovetskiy 3 years ago committed by Anders Jenbo
parent
commit
529a1631de
  1. 4
      CMake/finders/Findsodium.cmake

4
CMake/finders/Findsodium.cmake

@ -55,7 +55,7 @@ if (UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Generic" OR AMIGA)
endif()
if(sodium_USE_STATIC_LIBS)
if(sodium_PKG_STATIC_LIBRARIES)
if(sodium_PKG_STATIC_FOUND)
# Create a temporary list to manipulate the list of libraries we found
set(sodium_PKG_STATIC_LIBRARIES_TMP "")
@ -77,7 +77,7 @@ if (UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Generic" OR AMIGA)
set(XPREFIX sodium_PKG_STATIC)
else()
if(sodium_PKG_LIBRARIES STREQUAL "")
if(sodium_PKG_FOUND)
set(sodium_PKG_LIBRARIES sodium)
endif()

Loading…
Cancel
Save