Simplyfy nlohmann_json integration

This commit is contained in:
Martin Brodbeck 2025-03-17 14:34:54 +01:00
parent 8abb60c5db
commit d6b3606bd6
6 changed files with 5 additions and 16 deletions

View file

@ -7,7 +7,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_HOME_DIRECTORY}/cmake")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#include(InstallRequiredSystemLibraries)
# For SingleApplication and nlohmann_json
include(FetchContent)
if(MSVC)
add_compile_options(/W4 /WX)
@ -29,7 +30,6 @@ if(KIMA2_USE_EXTERNAL_JSON)
find_package(nlohmann_json REQUIRED)
endif()
add_subdirectory(subprojects)
add_subdirectory(src)
#if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES Debug)