Add static libraries to SMAKE find_package rules on Linux only

Might want to ad this for apple later as we sem to have inherited a lot of overspecified lib names in the update
master
Beq 2025-11-17 17:55:42 +00:00
parent 4020c120b7
commit 869c42e2a9
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ if (LINUX)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-keep-memory -Wl,--build-id -Wl,-rpath,'$ORIGIN:$ORIGIN/../lib' -Wl,--exclude-libs,ALL")
set(CMAKE_CXX_FLAGS_DEBUG "-fno-inline ${CMAKE_CXX_FLAGS_DEBUG}")
# Prefer static libraries on Linux
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so;.a")
endif (LINUX)
if (DARWIN)