Skip to content

Commit

Permalink
Revert dynamic lib build options. It only make effects only once on win.
Browse files Browse the repository at this point in the history
  • Loading branch information
crupest committed Oct 16, 2023
1 parent e373b62 commit b96302d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b96302d

Please sign in to comment.