[nostalgia] Allow disabling of BUILD_SHARED_LIBS

This commit is contained in:
Gary Talent 2024-09-17 23:51:37 -05:00
parent c599905000
commit 8769305d12

View File

@ -28,7 +28,7 @@ set(CMAKE_CXX_STANDARD 23)
if(APPLE)
set(CMAKE_MACOSX_RPATH OFF)
else()
if(UNIX)
if(UNIX AND NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ON)
endif()
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")