Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable Boost contextes on Windows
authordegomme <augustin.degomme@unibas.ch>
Mon, 7 Mar 2016 09:35:00 +0000 (10:35 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Mon, 7 Mar 2016 09:35:17 +0000 (10:35 +0100)
Detection fails on our test platform if we don't use static version

CMakeLists.txt
tools/cmake/MakeLibWin.cmake

index 6ef0d80..14db0b4 100644 (file)
@@ -226,6 +226,10 @@ if(enable_ns3)
   endif()
 endif()
 
   endif()
 endif()
 
+if(WIN32)
+  set(Boost_USE_STATIC_LIBS 1)
+endif()
+
 find_package(Boost 1.48)
 if(Boost_FOUND)
   include_directories(${Boost_INCLUDE_DIRS})
 find_package(Boost 1.48)
 if(Boost_FOUND)
   include_directories(${Boost_INCLUDE_DIRS})
index 67bc91e..fdbafe3 100644 (file)
@@ -19,6 +19,9 @@ else()
   if (HAVE_PTHREAD)
     set(SIMGRID_DEP "${SIMGRID_DEP} -lpthread")
   endif()
   if (HAVE_PTHREAD)
     set(SIMGRID_DEP "${SIMGRID_DEP} -lpthread")
   endif()
+  if (HAVE_BOOST_CONTEXTS)
+    set(SIMGRID_DEP "${SIMGRID_DEP} ${Boost_CONTEXT_LIBRARY}")
+  endif()
 endif()
 
 target_link_libraries(simgrid  ${SIMGRID_DEP})
 endif()
 
 target_link_libraries(simgrid  ${SIMGRID_DEP})