diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
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 | ||
4 | set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE) | 4 | set(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. | ||
13 | if(APPLE) | ||
14 | set(CMAKE_CXX_FLAGS "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1") | ||
15 | endif() | ||
16 | |||
17 | project(Webdir) | 6 | project(Webdir) |
18 | option(WEBDIR_BUILD_TESTS "Build unit tests" OFF) | 7 | option(WEBDIR_BUILD_TESTS "Build unit tests" OFF) |
19 | 8 | ||
@@ -45,7 +34,11 @@ FetchContent_Declare( | |||
45 | FetchContent_Declare( | 34 | FetchContent_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 | ||
51 | FetchContent_Declare( | 44 | FetchContent_Declare( |