From: Martin Quinson Date: Wed, 28 Jun 2017 11:20:30 +0000 (+0200) Subject: include build path before source path to ease out of source builds X-Git-Tag: v3_17~503 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0206d298260fae6a6e1c7c3577ec31a022d34fe4 include build path before source path to ease out of source builds --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fe0378cf62..7dea4f7bd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,11 +160,11 @@ SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib) ### Compute the include paths set(INCLUDES + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/include ${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/include ${CMAKE_HOME_DIRECTORY}/src/include - ${CMAKE_BINARY_DIR} - ${CMAKE_BINARY_DIR}/include ) if(NOT CMAKE_CROSSCOMPILING AND EXISTS /usr/include/)