diff --git a/CMakeLists.txt b/CMakeLists.txt index 436af6c..5ecbaa6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ endif() SET (ORIGINAL_LIB_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) SET(BOOST_COMPONENTS) -LIST(APPEND BOOST_COMPONENTS thread date_time filesystem system program_options signals serialization chrono unit_test_framework context locale iostreams) +LIST(APPEND BOOST_COMPONENTS thread date_time filesystem system program_options serialization chrono unit_test_framework context locale iostreams) SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" ) IF( ECC_IMPL STREQUAL openssl ) @@ -415,7 +415,7 @@ if(MSVC) endif(MSVC) -IF(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY MATCHES "\\.(a|lib)$") +IF(Boost_UNIT_TEST_FRAMEWORK_LIBRARY MATCHES "\\.(so|dll)$" OR FC_BUILD_DYNAMIC_LIBRARIES) IF(MSVC) add_definitions(/DBOOST_TEST_DYN_LINK) ELSE(MSVC) diff --git a/src/thread/context.hpp b/src/thread/context.hpp index 18a060c..51450cc 100755 --- a/src/thread/context.hpp +++ b/src/thread/context.hpp @@ -1,6 +1,5 @@ #pragma once #include -#include #include #include @@ -9,6 +8,12 @@ #define BOOST_COROUTINES_NO_DEPRECATION_WARNING // Boost 1.61 #define BOOST_COROUTINE_NO_DEPRECATION_WARNING // Boost 1.62 +#if BOOST_VERSION >= 106800 +#include +#else +#include +#endif + #if BOOST_VERSION >= 106100 #include namespace bc = boost::context::detail;