Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "When the lib is embeeded in jar, don't use boost_context"
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 4 Dec 2015 21:12:54 +0000 (22:12 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 4 Dec 2015 21:12:54 +0000 (22:12 +0100)
This reverts commit dc4df97acbdb945c9e9a7ace0cf0b4829a14d49b.

CMakeLists.txt
tools/cmake/Option.cmake

index 045a76d..dff73aa 100644 (file)
@@ -268,29 +268,23 @@ else()
   endif()
 endif()
 
-# Try again to see if we have libboost-context, 
-# but only if the lib is not embeeded in the jar file to reduce the dependencies from the Java point of view
-if(enable_lib_in_jar)
-  message("   (do not check for boost-context as you are building a full jarfile)")
-  set(HAVE_BOOST_CONTEXT 0)
-else()
-  find_package(Boost 1.42 COMPONENTS context)
-  set(Boost_FOUND 1) # We don't care of whether this component is missing
-
-  if(Boost_FOUND AND Boost_CONTEXT_FOUND)
-    # We should use feature detection for this instead:
-    if (Boost_VERSION LESS 105600)
-      message("Found Boost.Context API v1")
-      set(HAVE_BOOST_CONTEXT 1)
-    else()
-      message("Found Boost.Context API v2")
-      set(HAVE_BOOST_CONTEXT 2)
-    endif()
+# Try again to see if we have libboost-context
+find_package(Boost 1.42 COMPONENTS context)
+set(Boost_FOUND 1) # We don't care of whether this component is missing
+
+if(Boost_FOUND AND Boost_CONTEXT_FOUND)
+  # We should use feature detection for this instead:
+  if (Boost_VERSION LESS 105600)
+    message("Found Boost.Context API v1")
+    set(HAVE_BOOST_CONTEXT 1)
   else()
-    message ("   boost        : found.")
-    message ("   boost-context: missing. Install libboost-context-dev for this optional feature.")
-    set(HAVE_BOOST_CONTEXT 0)
+    message("Found Boost.Context API v2")
+    set(HAVE_BOOST_CONTEXT 2)
   endif()
+else()
+  message ("   boost        : found.")
+  message ("   boost-context: missing. Install libboost-context-dev for this optional feature.")
+  set(HAVE_BOOST_CONTEXT 0)
 endif()
 
 # Checks for header libraries functions.
index 1b1acf6..393d246 100644 (file)
@@ -45,7 +45,7 @@ option(enable_print_message "Enable print message during config." off)
 mark_as_advanced(enable_print_message)
 
 option(enable_model-checking "Turn this on to experiment with our prototype of model-checker (hinders the simulation's performance even if turned off at runtime)" off)
-option(enable_lib_in_jar "Whether the (stripped down) native libraries are bundled in a Java jar file" off)
+option(enable_lib_in_jar "Whether the native libraries are bundled in a Java jar file" on)
 option(enable_lto "Whether we should try to activate the LTO (link time optimisation)" on)
 option(enable_jedule "Jedule output of SimDAG." off)
 option(enable_debug "Turn this off to remove all debug messages at compile time (faster, but no debug activatable)" on)