From cf6f279830f3e53ecb6eee3d7cdc23ee9a286b9f Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Fri, 25 Mar 2022 13:14:11 +1100 Subject: [PATCH] Fix finding system PSL library (#2812) Whilst the library file my be called `libpsl`, CMake expects there to be a `lib` in front and thus the existing code was actually looking for `liblibpsl`. Co-authored-by: Charles Kerr --- cmake/FindPSL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindPSL.cmake b/cmake/FindPSL.cmake index 36b89ff99..6ef2139fc 100644 --- a/cmake/FindPSL.cmake +++ b/cmake/FindPSL.cmake @@ -13,7 +13,7 @@ if(UNIX) endif() find_path(PSL_INCLUDE_DIR NAMES libpsl.h HINTS ${_PSL_INCLUDEDIR}) -find_library(PSL_LIBRARY NAMES libpsl HINTS ${_PSL_LIBDIR}) +find_library(PSL_LIBRARY NAMES psl HINTS ${_PSL_LIBDIR}) set(PSL_INCLUDE_DIRS ${PSL_INCLUDE_DIR}) set(PSL_LIBRARIES ${PSL_LIBRARY})