2020-04-24 04:43:38 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-06-07 03:43:42 +08:00
|
|
|
index d18407c..db19e0b 100644
|
2020-04-24 04:43:38 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-06-07 03:43:42 +08:00
|
|
|
@@ -21,8 +21,7 @@ option(RYML_DBG "Enable (very verbose) ryml debug prints." OFF)
|
2020-04-24 04:43:38 +08:00
|
|
|
|
|
|
|
#-------------------------------------------------------
|
|
|
|
|
|
|
|
-c4_require_subproject(c4core INCORPORATE
|
|
|
|
- SUBDIRECTORY ${RYML_EXT_DIR}/c4core)
|
|
|
|
+find_package(c4core CONFIG REQUIRED)
|
|
|
|
|
|
|
|
c4_add_library(ryml
|
|
|
|
SOURCES
|
2022-06-07 03:43:42 +08:00
|
|
|
@@ -54,10 +53,10 @@ c4_add_library(ryml
|
2020-04-24 04:43:38 +08:00
|
|
|
ryml.natvis
|
|
|
|
SOURCE_ROOT ${RYML_SRC_DIR}
|
|
|
|
INC_DIRS
|
2022-06-07 03:43:42 +08:00
|
|
|
+ $<BUILD_INTERFACE:${C4CORE_INCLUDE_DIR}>
|
2020-04-24 04:43:38 +08:00
|
|
|
$<BUILD_INTERFACE:${RYML_SRC_DIR}>
|
|
|
|
$<INSTALL_INTERFACE:include>
|
|
|
|
- LIBS c4core
|
|
|
|
- INCORPORATE c4core
|
|
|
|
+ LIBS c4core::c4core
|
|
|
|
)
|
|
|
|
|
2022-06-07 03:43:42 +08:00
|
|
|
if(RYML_WITH_TAB_TOKENS)
|