From: mquinson Date: Sun, 31 Oct 2010 12:26:57 +0000 (+0000) Subject: let it cross compile for real, now X-Git-Tag: v3_5~339 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4560fb2f0f64f8791f76b157d0d6d45758ec3253 let it cross compile for real, now git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8486 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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)