diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e4eb23..115b8aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,8 +20,7 @@ option(RYML_BUILD_API "Enable API generation (python, etc)" OFF) #------------------------------------------------------- -c4_require_subproject(c4core INCORPORATE - SUBDIRECTORY ${RYML_EXT_DIR}/c4core) +find_package(c4core CONFIG REQUIRED) c4_add_library(ryml SOURCES @@ -46,10 +46,10 @@ c4_add_library(ryml ryml.natvis SOURCE_ROOT ${RYML_SRC_DIR} INC_DIRS + $ $ $ - LIBS c4core - INCORPORATE c4core + LIBS c4core::c4core ) if(NOT RYML_DEFAULT_CALLBACKS)