aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt17
1 files changed, 5 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1378763..ff4b349 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,17 +3,6 @@ cmake_minimum_required(VERSION 3.24)
3 3
4set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE) 4set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
5 5
6# For whatever reason, the C++ stdlib is broken on my Mac.
7#
8# % echo "#include <vector>" | c++ -x c++ -
9# <stdin>:1:10: fatal error: 'vector' file not found
10# 1 | #include <vector>
11# | ^~~~~~~~
12# 1 error generated.
13if(APPLE)
14 set(CMAKE_CXX_FLAGS "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1")
15endif()
16
17project(Webdir) 6project(Webdir)
18option(WEBDIR_BUILD_TESTS "Build unit tests" OFF) 7option(WEBDIR_BUILD_TESTS "Build unit tests" OFF)
19 8
@@ -45,7 +34,11 @@ FetchContent_Declare(
45FetchContent_Declare( 34FetchContent_Declare(
46 json 35 json
47 GIT_REPOSITORY https://github.com/nlohmann/json.git 36 GIT_REPOSITORY https://github.com/nlohmann/json.git
48 GIT_TAG v3.11.3 37 # TODO: Use 3.12.1.
38 #
39 # Temporarily swtich to develop because of
40 # https://github.com/nlohmann/json/issues/4756.
41 GIT_TAG develop
49) 42)
50 43
51FetchContent_Declare( 44FetchContent_Declare(