diff options
author | Michael Dickens <mlk@alum.mit.edu> | 2013-05-17 09:06:21 -0400 |
---|---|---|
committer | Michael Dickens <mlk@alum.mit.edu> | 2013-05-17 09:06:21 -0400 |
commit | acca9925e693a25e7aa603f92666b0956c2262e1 (patch) | |
tree | 16a0c14854fe93caec613c098bd27d250c5ec336 /cmake | |
parent | b1f802015fe5ce88c45f68f09d81fce0cdb75411 (diff) |
Fix header include directory ordering
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrSwig.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake index 3c814c5d60..8cf1265411 100644 --- a/cmake/Modules/GrSwig.cmake +++ b/cmake/Modules/GrSwig.cmake @@ -130,8 +130,10 @@ macro(GR_SWIG_MAKE name) find_package(PythonLibs) list(APPEND GR_SWIG_INCLUDE_DIRS ${PYTHON_INCLUDE_PATH}) #deprecated name (now dirs) list(APPEND GR_SWIG_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}) - list(APPEND GR_SWIG_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}) - list(APPEND GR_SWIG_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}) + + #prepend local swig directories + list(INSERT GR_SWIG_INCLUDE_DIRS 0 ${CMAKE_CURRENT_SOURCE_DIR}) + list(INSERT GR_SWIG_INCLUDE_DIRS 0 ${CMAKE_CURRENT_BINARY_DIR}) #determine include dependencies for swig file execute_process( |