From a7459f3507bb1bdb17c3718ee70c9e37debc5cf5 Mon Sep 17 00:00:00 2001 From: Chase Geigle Date: Thu, 8 Sep 2016 09:35:19 -0500 Subject: [PATCH] Fix issue with finding config.h when used as a sub-project. include_directories() doesn't propagate to parent projects, so they would fail to find meta/config.h. By adding this to meta-definitions, it now propagates through that library's INTERFACE properties. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4da54cbe2..18d59e9cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,9 @@ endif() CompilerKludges(meta/kludges.h) configure_file(include/meta/config.h.in meta/config.h) -include_directories(${CMAKE_CURRENT_BINARY_DIR}) +target_include_directories(meta-definitions INTERFACE + $ + $) cmake_pop_check_state()