Skip to content

Commit 18dbc8a

Browse files
Fix build errors.
1 parent 121bf4f commit 18dbc8a

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ FetchContent_Declare(json
2424
GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent
2525
GIT_TAG v3.9.1
2626
GIT_PROGRESS TRUE
27+
EXCLUDE_FROM_ALL TRUE
2728
)
2829

29-
FetchContent_GetProperties(json)
30-
if(NOT json_POPULATED)
31-
FetchContent_Populate(json)
32-
add_subdirectory(${json_SOURCE_DIR} ${json_BINARY_DIR} EXCLUDE_FROM_ALL)
33-
endif()
30+
FetchContent_MakeAvailable(json)
3431

3532
#-------------------------------------------------------------------------------
3633

@@ -41,6 +38,7 @@ FetchContent_Declare(antlr
4138
GIT_TAG remove-pthread
4239
GIT_SHALLOW FALSE
4340
GIT_PROGRESS TRUE
41+
EXCLUDE_FROM_ALL TRUE
4442
)
4543

4644
FetchContent_GetProperties(antlr)

src/translator/grammar/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ else()
1010
FetchContent_Declare(kgt
1111
GIT_REPOSITORY https://github.com/ArthurSonzogni/kgt
1212
GIT_TAG 56c3f46cf286051096d9295118c048219fe0d776
13+
EXCLUDE_FROM_ALL
1314
)
14-
FetchContent_GetProperties(kgt)
15-
FetchContent_Populate(kgt)
16-
add_subdirectory(${kgt_SOURCE_DIR} ${kgt_BINARY_DIR} EXCLUDE_FROM_ALL)
15+
FetchContent_MakeAvailable(kgt)
1716
target_link_libraries(translator_grammar PRIVATE kgt::kgt)
1817
endif()

src/translator/graph_planar/GraphPlanarEmpty.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <memory>
12
#include "translator/Translator.h"
23

34
std::unique_ptr<Translator> GraphPlanarTranslator() {

0 commit comments

Comments
 (0)