Fix build errors.

This commit is contained in:
ArthurSonzogni
2025-05-16 11:50:45 +02:00
parent 121bf4f302
commit 18dbc8acc6
3 changed files with 6 additions and 8 deletions
+3 -5
View File
@@ -24,13 +24,10 @@ FetchContent_Declare(json
GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent
GIT_TAG v3.9.1
GIT_PROGRESS TRUE
EXCLUDE_FROM_ALL TRUE
)
FetchContent_GetProperties(json)
if(NOT json_POPULATED)
FetchContent_Populate(json)
add_subdirectory(${json_SOURCE_DIR} ${json_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(json)
#-------------------------------------------------------------------------------
@@ -41,6 +38,7 @@ FetchContent_Declare(antlr
GIT_TAG remove-pthread
GIT_SHALLOW FALSE
GIT_PROGRESS TRUE
EXCLUDE_FROM_ALL TRUE
)
FetchContent_GetProperties(antlr)
+2 -3
View File
@@ -10,9 +10,8 @@ else()
FetchContent_Declare(kgt
GIT_REPOSITORY https://github.com/ArthurSonzogni/kgt
GIT_TAG 56c3f46cf286051096d9295118c048219fe0d776
EXCLUDE_FROM_ALL
)
FetchContent_GetProperties(kgt)
FetchContent_Populate(kgt)
add_subdirectory(${kgt_SOURCE_DIR} ${kgt_BINARY_DIR} EXCLUDE_FROM_ALL)
FetchContent_MakeAvailable(kgt)
target_link_libraries(translator_grammar PRIVATE kgt::kgt)
endif()
@@ -1,3 +1,4 @@
#include <memory>
#include "translator/Translator.h"
std::unique_ptr<Translator> GraphPlanarTranslator() {