mirror of
https://github.com/ArthurSonzogni/Diagon.git
synced 2026-08-29 08:34:44 +08:00
Fix build errors.
This commit is contained in:
+3
-5
@@ -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)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user