CMake: Fix GTK3 Win32 build

Add 'BEFORE' to target_include_directories so we include the headers
of the buildin third-party libraries before headers of third-party
libraries included in wxTOOLKIT_INCLUDE_DIRS.
This commit is contained in:
Maarten Bent
2018-03-23 21:58:39 +01:00
parent 3ae0ca9d0e
commit e2ddc3e863
4 changed files with 14 additions and 5 deletions

View File

@@ -378,7 +378,7 @@ macro(wx_lib_include_directories name)
list(APPEND wxMONO_INCLUDE_DIRS_PUBLIC ${_LIB_INCLUDE_DIRS_PUBLIC})
list(APPEND wxMONO_INCLUDE_DIRS_PRIVATE ${_LIB_INCLUDE_DIRS_PRIVATE})
else()
target_include_directories(${name};${ARGN})
target_include_directories(${name};BEFORE;${ARGN})
endif()
endmacro()