From 99c3697d1230dbff354f2507174f76444f4738f0 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Fri, 1 Mar 2019 12:38:59 -0500 Subject: [PATCH] Ensure our include directories get added in the correct order If you have assimp installed already and in the include path (e.g. I have it via homebrew), it can pick up the wrong headers. This forces the include order so our local ones are found first when building assimp. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14c65c188..6417053ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,7 +198,7 @@ CONFIGURE_FILE( ${CMAKE_CURRENT_BINARY_DIR}/include/assimp/config.h ) -INCLUDE_DIRECTORIES( +INCLUDE_DIRECTORIES( BEFORE ./ include ${CMAKE_CURRENT_BINARY_DIR}