From 927d62a81c3cdb34bf58411197d28b7410b62ee7 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 26 Jun 2019 16:39:50 +0100 Subject: [PATCH] Fix compilation with CMake This adds the root of the source tree to the include path, which allow `#include ` to work. Fixes #908 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed4eff5c..5e58009a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,5 +12,6 @@ set(CMAKE_VERBOSE_MAKEFILE on) file(GLOB yogacore_SRC yoga/*.cpp) add_library(yogacore STATIC ${yogacore_SRC}) +target_include_directories(yogacore PUBLIC .) target_link_libraries(yogacore android log) set_target_properties(yogacore PROPERTIES CXX_STANDARD 11)