From 2dcff4bb8ed3cbb8213fb2ec2f23ace700f9ada9 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 6 Nov 2016 21:57:30 +0100 Subject: [PATCH] Ensure build include location is used first. Otherwise PREFIX_PATH headers might be found first, but these could be from an older SimGear version. --- simgear/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 313ea78f..1759d7a5 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -108,7 +108,7 @@ else() endif(NOT SIMGEAR_HEADLESS) endif(SIMGEAR_SHARED) -target_include_directories(SimGearCore PUBLIC +target_include_directories(SimGearCore BEFORE PUBLIC $ $) @@ -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 $ $)