Skip to content

Commit 75cf228

Browse files
committed
fix: Use CMAKE_SHARED_LIBRARY_SUFFIX instead of hardcode .so
macOS uses .dylib and this is the only thing that prevents using CMake on macOS.
1 parent f7883c2 commit 75cf228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ set(DEFAULT_LOG_LEVEL "INFO"
5050
CACHE STRING "The default log level")
5151
set(DEFAULT_OBJECTSTORE_BACKEND "file"
5252
CACHE STRING "Default storage backend for token objects")
53-
set(DEFAULT_PKCS11_LIB "${CMAKE_INSTALL_FULL_LIBDIR}/softhsm/libsofthsm2.so"
53+
set(DEFAULT_PKCS11_LIB "${CMAKE_INSTALL_FULL_LIBDIR}/softhsm/libsofthsm2${CMAKE_SHARED_LIBRARY_SUFFIX}"
5454
CACHE STRING "The default PKCS#11 library")
5555
set(DEFAULT_SOFTHSM2_CONF "${CMAKE_INSTALL_FULL_SYSCONFDIR}/softhsm2.conf"
5656
CACHE STRING "The default location of softhsm.conf")

0 commit comments

Comments
 (0)