Skip to content

Commit

Permalink
Add option to build using header-only spdlog
Browse files Browse the repository at this point in the history
Experimental, and requires a latest timoore cesium-native
  • Loading branch information
timoore committed Dec 25, 2023
1 parent fbe0c6f commit 4116df5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ include("vsgCsMacros")
# set the use of C++17 globally as all examples require it
set(CMAKE_CXX_STANDARD 17)

# template madness

if (MSVC)
add_compile_options(/bigobj)
# template madness
add_compile_options(/bigobj)
# windows.h madness
add_compile_definitions(NOGDI)
endif()

option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
Expand Down Expand Up @@ -63,6 +64,7 @@ FetchContent_Declare(vsgImGui
FetchContent_MakeAvailable(vsgImGui)

# Wrangle Cesium's dependencies into shape i.e., install them!
option(CESIUM_SPDLOG_HEADER_ONLY "Whether to use the header-only version of spdlog." OFF)
option(GSL_INSTALL "Generate and install GSL target" ON)
FetchContent_Declare(Cesium
GIT_REPOSITORY https://github.com/timoore/cesium-native.git
Expand Down

0 comments on commit 4116df5

Please sign in to comment.