Ensure build include location is used first.

Otherwise PREFIX_PATH headers might be found first, but these could be
from an older SimGear version.
This commit is contained in:
James Turner 2016-11-06 21:57:30 +01:00
parent 604a9ff614
commit 2dcff4bb8e

View File

@ -108,7 +108,7 @@ else()
endif(NOT SIMGEAR_HEADLESS)
endif(SIMGEAR_SHARED)
target_include_directories(SimGearCore PUBLIC
target_include_directories(SimGearCore BEFORE PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>)
@ -123,7 +123,7 @@ if (NOT SIMGEAR_HEADLESS)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
target_include_directories(SimGearScene PUBLIC
target_include_directories(SimGearScene BEFORE PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>)