Browse Source

Findsodium.cmake: Fix tabs->spaces

Fixes a formatting inconsistency I inadvertently
introduced in a previous change. Apologies!

Fixes: 012f3aa90c
Signed-off-by: Sam James <sam@gentoo.org>
pull/2494/head
Sam James 5 years ago committed by Anders Jenbo
parent
commit
a755f81a14
  1. 10
      CMake/Findsodium.cmake

10
CMake/Findsodium.cmake

@ -56,10 +56,10 @@ if (UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Generic" OR AMIGA)
if(sodium_USE_STATIC_LIBS)
if(sodium_PKG_STATIC_LIBRARIES)
# Create a temporary list to manipulate the list of libraries we found
set(sodium_PKG_STATIC_LIBRARIES_TMP "")
# Create a temporary list to manipulate the list of libraries we found
set(sodium_PKG_STATIC_LIBRARIES_TMP "")
# Mangle the library names into the format we need
# Mangle the library names into the format we need
foreach(_libname ${sodium_PKG_STATIC_LIBRARIES})
if (NOT _libname MATCHES "^lib.*\\.a$") # ignore strings already ending with .a
list(APPEND sodium_PKG_STATIC_LIBRARIES_TMP "lib${_libname}.a")
@ -67,8 +67,8 @@ if (UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Generic" OR AMIGA)
endforeach()
list(REMOVE_DUPLICATES sodium_PKG_STATIC_LIBRARIES_TMP)
# Replace the list with our processed one
set(sodium_PKG_STATIC_LIBRARIES ${sodium_PKG_STATIC_LIBRARIES_TMP})
# Replace the list with our processed one
set(sodium_PKG_STATIC_LIBRARIES ${sodium_PKG_STATIC_LIBRARIES_TMP})
else()
# if pkgconfig for libsodium doesn't provide
# static lib info, then override PKG_STATIC here..

Loading…
Cancel
Save