Fix CMake script for NetBSD.

This commit is contained in:
David Reid
2025-07-15 07:20:52 +10:00
parent 96eea50e7d
commit 1e6c01f31d
+4 -1
View File
@@ -457,7 +457,10 @@ endif()
set(COMMON_LINK_LIBRARIES)
if (UNIX)
list(APPEND COMMON_LINK_LIBRARIES dl) # For dlopen(), etc. Most compilers will link to this by default, but some may not.
if(NOT CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
list(APPEND COMMON_LINK_LIBRARIES dl) # For dlopen(), etc. Most compilers will link to this by default, but some may not.
endif()
list(APPEND COMMON_LINK_LIBRARIES pthread) # Some compilers will not link to pthread by default so list it here just in case.
list(APPEND COMMON_LINK_LIBRARIES m)