X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7721f9d25945759e012f67181e69550a3a222eb0..467944fe0ac76fb00b1e9b3a919b1ce4a165ef0f:/buildtools/Cmake/Option.cmake diff --git a/buildtools/Cmake/Option.cmake b/buildtools/Cmake/Option.cmake index 59cc536f41..2177b3fccb 100644 --- a/buildtools/Cmake/Option.cmake +++ b/buildtools/Cmake/Option.cmake @@ -3,14 +3,24 @@ set(BIBTEX2HTML ${BIBTEX2HTML} CACHE PATH "Path to bibtex2html") set(gtnets_path ${gtnets_path} CACHE PATH "Path to gtnets lib") -set(prefix ${prefix} CACHE PATH "Path where to install project") + +if(NOT prefix) + set(prefix "/usr/local/simgrid/" CACHE PATH "Path where to install project") +else(NOT prefix) + set(prefix ${prefix} CACHE PATH "Path where to install project") +endif(NOT prefix) + set(with_context ${with_context} CACHE TYPE INTERNAL FORCE) if(NOT with_context) set(with_context "auto" CACHE TYPE INTERNAL FORCE) endif(NOT with_context) -option(enable_smpi "This variable set smpi lib." on) +if(CMAKE_SYSTEM_NAME MATCHES "Darwin") + option(enable_smpi "This variable set smpi lib." off) #for the moment it doesn't compil with MacOS +else(CMAKE_SYSTEM_NAME MATCHES "Darwin") + option(enable_smpi "This variable set smpi lib." on) +endif(CMAKE_SYSTEM_NAME MATCHES "Darwin") option(enable_gtnets "This variable set the gtnets context." on) option(enable_java "This variable set the java context." off) option(enable_lua "This variable set lua use." on) @@ -30,7 +40,6 @@ if(WIN32) #actually not enable with windows message("Mode supernovae and maintainer disable with Windows.") set(enable_supernovae false CACHE TYPE INTERNAL FORCE) set(enable_maintainer_mode false CACHE TYPE INTERNAL FORCE) - set(with_context "windows" CACHE TYPE INTERNAL FORCE) endif(WIN32) mark_as_advanced(enable_coverage)