refactor: Use FetchContent for integrating bundled nlohman-json lib

Signed-off-by: Federico Aponte <federico.aponte@sysdig.com>
This commit is contained in:
Federico Aponte
2024-02-25 15:29:05 +01:00
committed by poiana
parent ea187d3b45
commit bc499e191d
2 changed files with 10 additions and 25 deletions

View File

@@ -33,12 +33,11 @@ if (EMSCRIPTEN)
target_compile_options(falco_engine PRIVATE "-sDISABLE_EXCEPTION_CATCHING=0")
endif()
add_dependencies(falco_engine yamlcpp njson)
add_dependencies(falco_engine yamlcpp)
target_include_directories(falco_engine
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${nlohmann_json_INCLUDE_DIRS}
${TBB_INCLUDE_DIR}
${YAMLCPP_INCLUDE_DIR}
)
@@ -46,5 +45,5 @@ PUBLIC
target_link_libraries(falco_engine
PUBLIC
sinsp
${YAMLCPP_LIB}
nlohmann_json::nlohmann_json
)