Use include_directories(SYSTEM ...) consistently
commit411d1811420d0fdd9d782658fcd87017360bde5c
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 18 Oct 2015 03:13:57 +0000 (18 06:13 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 22 Oct 2015 13:23:07 +0000 (22 15:23 +0200)
tree288dcdb15e362350bf96377844f4aa954611985c
parent055f7726e70ee3f4d5ec14fc17a1add2214fb9bd
Use include_directories(SYSTEM ...) consistently

Apparently, at least some compilers treat -isystem differently from -I
in that no matter what the order on the command line is, -I always takes
precedence.  This means that some of the
  include_directories(BEFORE SYSTEM ...)
did not work correctly, and in particular GMX_EXTERNAL_BOOST=OFF was
broken.  Likely also #1539 was (again) broken.

Make all includes that come from outside the source tree use SYSTEM, so
that the include directory for internal boost still takes precedence
over them.

Fixes #1844.

Change-Id: Ib536c24a0d13c6538f78daac145dc8d38135819d
CMakeLists.txt
cmake/gmxManageFFTLibraries.cmake
cmake/gmxManageGPU.cmake
cmake/gmxManageMPI.cmake
cmake/gmxManageOpenCL.cmake
src/gromacs/CMakeLists.txt
src/testutils/CMakeLists.txt