Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Generate doc only if it is necessary. Set enable_doc option.
[simgrid.git] / buildtools / Cmake / Option.cmake
index 59cc536..4a07394 100644 (file)
@@ -3,19 +3,29 @@
 
 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)
 option(enable_ruby "This variable set ruby use." on)
-
+option(enable_doc "Setting true this variable enable making the simgrid documentation." off)
 option(enable_compile_optimizations "" off)
 option(enable_compile_warnings "" off)
 option(enable_maintainer_mode "Permit to make flex and flexml files." off)
@@ -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)