X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6b5e106ef53a55ba7a1d7228f19456c9b249df9..44591c66c740ec2e51c8e576157d7423a2fe75aa:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 57f1afc82b..e7311c77d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ if (APPLE) #MAC set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif() -if (NOT DEFINED enable_smpi OR enable_smpi) # smpi is enabled by default +if ((NOT DEFINED enable_smpi OR enable_smpi) AND NOT APPLE) # smpi is enabled by default # Call enable_language(Fortran) in order to load the build rules for # this language, needed by teshsuite/smpi/mpich-test/. Use # CMAKE_FORCE_Fortran_COMPILER to bypass checks for a working @@ -189,7 +189,9 @@ if(WIN32) if(NSIS_WIN_VERSION MATCHES "") set(NSIS_WIN_VERSION $ENV{PROCESSOR_ARCHITECTURE}) endif() - string(TOLOWER ${NSIS_WIN_VERSION} NSIS_WIN_VERSION) + if(${NSIS_WIN_VERSION}) + string(TOLOWER ${NSIS_WIN_VERSION} NSIS_WIN_VERSION) + endif() set(_XBT_WIN32 1)