From 8769305d12c67c5657cc142f8390760b5544bc24 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 17 Sep 2024 23:51:37 -0500 Subject: [PATCH] [nostalgia] Allow disabling of BUILD_SHARED_LIBS --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9529a1e4..289ffb06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")