File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff 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
4644FetchContent_GetProperties (antlr)
Original file line number Diff line number Diff line change 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 )
1817endif ()
Original file line number Diff line number Diff line change 1+ #include < memory>
12#include " translator/Translator.h"
23
34std::unique_ptr<Translator> GraphPlanarTranslator () {
You can’t perform that action at this time.
0 commit comments