Skip to content

Commit

Permalink
Avoid compiler flag for standard /usr/include
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Mar 13, 2016
1 parent 12879a0 commit 93f2bfc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SimulationRuntime/cpp/Core/Modelica/CMakeLists.txt
Expand Up @@ -122,7 +122,9 @@ ELSE(WIN32)
ELSE()
SET(Boost_LIBS_ ${Boost_LIBRARY_DIR})
ENDIF()
IF("${Boost_INCLUDE_DIR}" STREQUAL "")
IF("${Boost_INCLUDE_DIR}" STREQUAL "" OR
"${Boost_INCLUDE_DIR}" STREQUAL "/usr/include")
# standard /usr/include collides with cross compilation
SET(Boost_INCLUDE_ ".")
ELSE()
SET(Boost_INCLUDE_ ${Boost_INCLUDE_DIR})
Expand All @@ -132,7 +134,9 @@ ELSE(WIN32)
ELSE()
SET(SUNDIALS_LIBS_ ${SUNDIALS_LIBS})
ENDIF()
IF("${SUNDIALS_INCLUDE_DIR}" STREQUAL "")
IF("${SUNDIALS_INCLUDE_DIR}" STREQUAL "" OR
"${SUNDIALS_INCLUDE_DIR}" STREQUAL "/usr/include")
# standard /usr/include collides with cross compilation
SET(SUNDIALS_INCLUDE_DIR_ ".")
ELSE()
SET(SUNDIALS_INCLUDE_DIR_ ${SUNDIALS_INCLUDE_DIR})
Expand Down

0 comments on commit 93f2bfc

Please sign in to comment.