Skip to content

Commit 519f7a5

Browse files
authored
Merge pull request #762 from middagj/cmake-macos
fix: Use CMAKE_SHARED_LIBRARY_SUFFIX instead of hardcode .so
2 parents f7883c2 + 75cf228 commit 519f7a5

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)