-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)
-
-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)
-option(enable_supernovae "Supernovae mode." off)
-option(enable_tracing "Tracing MSG (for now) simulations for visualization." off)
+if(NOT CMAKE_INSTALL_PREFIX)
+ set(CMAKE_INSTALL_PREFIX "/usr/local/simgrid/" CACHE PATH "Path where to install project")
+else(NOT CMAKE_INSTALL_PREFIX)
+ set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Path where to install project")
+endif(NOT CMAKE_INSTALL_PREFIX)
+
+set(pipol_user ${pipol_user} CACHE TYPE INTERNAL FORCE)
+
+option(release "Whether Release Mode is activated (disable tests on experimental parts)" on)
+option(enable_compile_optimizations "" on)
+option(enable_debug "Set NDEBUG flag" on)
+
+option(enable_gtnets "Whether gtnets model is activated." off)
+option(enable_ns3 "Whether ns3 model is activated." off)
+option(enable_smpi "This variable set smpi lib." off)
+option(enable_lua "Whether the lua bindings are activated." off)
+option(enable_compile_warnings "Whether compilation warnings should be turned into errors." off)
+option(enable_maintainer_mode "Whether flex and flexml files should be rebuilt." off)
+option(enable_tracing "Tracing simulations for visualization." off)
+option(enable_latency_bound_tracking "" off)