Przeglądaj źródła

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.
Andy Maloney 6 lat temu
rodzic
commit
99c3697d12
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -198,7 +198,7 @@ CONFIGURE_FILE(
   ${CMAKE_CURRENT_BINARY_DIR}/include/assimp/config.h
   ${CMAKE_CURRENT_BINARY_DIR}/include/assimp/config.h
 )
 )
 
 
-INCLUDE_DIRECTORIES(
+INCLUDE_DIRECTORIES( BEFORE
   ./
   ./
   include
   include
   ${CMAKE_CURRENT_BINARY_DIR}
   ${CMAKE_CURRENT_BINARY_DIR}