Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / tools / cmake / Option.cmake
index 1ac892978f7f15181e91de78932b45228868ca1e..0ff2fcca265d12b7cf650d95f758fd9aa9672649 100644 (file)
@@ -23,11 +23,16 @@ option(enable_debug                 "Turn this off to remove all debug messages
 option(enable_documentation "Whether to produce documentation" off)
 
 option(enable_ns3            "Whether ns-3 model is activated." off)
-option(enable_msg            "Whether the MSG module is activated." off)
+option(enable_msg            "Java was removed from SimGrid v3.33. Please do not enable it here." off)
+mark_as_advanced(enable_msg)
+if (enable_msg)
+  message(FATAL_ERROR "MSG was removed from SimGrid v3.33. Please stick to v3.32 or earlier if you need Java.")
+endif()
+
 option(enable_java            "Java was removed from SimGrid v3.33. Please do not enable it here." off)
 mark_as_advanced(enable_java)
 if (enable_java)
-  message(FATAL "Java was removed from SimGrid v3.33. Please stick to v3.32 or earlier if you need Java.")
+  message(FATAL_ERROR "Java was removed from SimGrid v3.33. Please stick to v3.32 or earlier if you need Java.")
 endif()
 
 option(minimal-bindings      "Whether to compile the Python bindings libraries with the minimal dependency set" off)