From 3da87609f4ae3d16006c62640a8fb1a08cf8c009 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 3 Aug 2019 13:12:09 +0200 Subject: [PATCH] Set BUILD_SHARED_LIBS via option(). --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8be94ef..027ea74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,9 +19,7 @@ endif() # All custom build switches. option(WITH_EXAMPLES "Compile examples." NO) option(WITH_TESTS "Compile tests." NO) - -# Build shared libs by default but allow overriding. -set(BUILD_SHARED_LIBS YES CACHE BOOL "Build shared libs.") +option(BUILD_SHARED_LIBS "Build shared libraries." YES) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED YES)