From 910aaa396149e12f60e75f7c444c4c4ed3aaac54 Mon Sep 17 00:00:00 2001 From: NikitaFeodonit Date: Fri, 3 May 2019 20:50:57 +0300 Subject: [PATCH] Fix include directories for built-in libraries in CMake build This fixes ''wx/setup.h' file not found' error in CMake macOS build. Closes https://github.com/wxWidgets/wxWidgets/pull/1314 --- build/cmake/functions.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake index 709a59760f..f5a613c7bf 100644 --- a/build/cmake/functions.cmake +++ b/build/cmake/functions.cmake @@ -466,6 +466,12 @@ function(wx_set_builtin_target_properties target_name) ) endif() + target_include_directories(${target_name} + BEFORE + PUBLIC + ${wxSETUP_HEADER_PATH} + ) + set_target_properties(${target_name} PROPERTIES FOLDER "Third Party Libraries") wx_set_common_target_properties(${target_name} DEFAULT_WARNINGS)