From f0661bd20eee9fe9de6d60767efe3fd5839caf68 Mon Sep 17 00:00:00 2001 From: Matt Woodward Date: Mon, 29 Apr 2019 19:36:11 +1000 Subject: [PATCH] Export build interface include path --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a082038..1cc598c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,6 +280,10 @@ set(_INSTALL_DESTINATIONS ### Library ### add_library(yaml-cpp ${library_sources}) +target_include_directories(yaml-cpp INTERFACE + $ + ) + set_target_properties(yaml-cpp PROPERTIES COMPILE_FLAGS "${yaml_c_flags} ${yaml_cxx_flags}" )