X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/56634156c33c9d551211a57579d526f8f35d9911..61e51ed458b9c4bc40343c50fc28ab0f3da72eaa:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index a66e616ecd..8449e8f97e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,9 +30,9 @@ if(WIN32) endif(WIN32) set(CMAKE_SOURCE_DIR ${PROJECT_SOURCE_DIRECTORY}) -if(EXISTS /usr/include/) +if(NOT CMAKE_CROSSCOMPILING AND EXISTS /usr/include/) set(INCLUDES "${INCLUDES} -I/usr/include/") -endif(EXISTS /usr/include/) +endif(NOT CMAKE_CROSSCOMPILING AND EXISTS /usr/include/) ### Check 32bits or 64bits INCLUDE (CheckTypeSize)