From b96302d5b517cce20544b4aac3153aada1bd56f3 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 16 Oct 2023 18:11:58 +0800 Subject: [PATCH] Revert dynamic lib build options. It only make effects only once on win. --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ab11e9f..086e5048 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,24 +8,18 @@ if (EMSCRIPTEN) set(CRU_DEFAULT_BUILD_SHARED_LIBS OFF) endif() -option(CRU_BUILD_SHARED_LIBS "Try to build shared libraries as default" ${CRU_DEFAULT_BUILD_SHARED_LIBS}) +option(BUILD_SHARED_LIBS "Try to build shared libraries as default" ${CRU_DEFAULT_BUILD_SHARED_LIBS}) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_EXTENSIONS OFF) -set(BUILD_SHARED_LIBS ${CRU_BUILD_SHARED_LIBS}) - project(cru) if (APPLE) include_directories(BEFORE SYSTEM "/usr/local/include") endif() -# Catch2 must be compiled as static library -set(BUILD_SHARED_LIBS OFF) add_subdirectory(lib/Catch2) -set(BUILD_SHARED_LIBS ${CRU_BUILD_SHARED_LIBS}) - add_subdirectory(lib/double-conversion) add_subdirectory(lib/GSL)