From a21888021624defe0d18eca2cf6db56de724fad0 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 7 Aug 2019 23:49:59 -0700 Subject: [PATCH] Fix compilation with CMake (#909) Summary: This adds the root of the source tree to the include path, which allow `#include ` to work. Fixes https://github.com/facebook/yoga/issues/908 Pull Request resolved: https://github.com/facebook/yoga/pull/909 Differential Revision: D16701716 Pulled By: davidaurelio fbshipit-source-id: 0fdc6479e4f3119a3e4ddbcd4b48541b282c1bbd --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ba4477e..595faef5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,5 +12,6 @@ set(CMAKE_VERBOSE_MAKEFILE on) file(GLOB_RECURSE 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)