vcpkg/ports/ryml/cmake-fix.patch
Michael Goulding f565807b1b
[ryml] [c4core] Update RapidYaml (ryml) to newer version (#18230)
* remove old port version

* fix versions yet again

Co-authored-by: Michael Goulding <Michael.Goulding@microsoft.com>
2021-06-15 11:46:16 -07:00

29 lines
762 B
Diff

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
+ $<BUILD_INTERFACE:${C4CORE_INCLUDE_DIR}>
$<BUILD_INTERFACE:${RYML_SRC_DIR}>
$<INSTALL_INTERFACE:include>
- LIBS c4core
- INCORPORATE c4core
+ LIBS c4core::c4core
)
if(NOT RYML_DEFAULT_CALLBACKS)