Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23491f commit 98b41b9Copy full SHA for 98b41b9
CMakeLists.txt
@@ -17,11 +17,12 @@ endif()
17
find_package(Boost COMPONENTS coroutine QUIET)
18
if(Boost_FOUND)
19
include_directories(${Boost_INCLUDE_DIRS})
20
- if(NOT Boost_VERSION VERSION_LESS 105900)
+ string(REPLACE "." "0" Boost_VERSION_NODOT ${Boost_VERSION})
21
+ if(NOT Boost_VERSION_NODOT VERSION_LESS 105900)
22
message(STATUS "Found boost::coroutine2.")
23
add_definitions(-DBT_BOOST_COROUTINE2)
24
set(BT_COROUTINES true)
- elseif(NOT Boost_VERSION VERSION_LESS 105300)
25
+ elseif(NOT Boost_VERSION_NODOT VERSION_LESS 105300)
26
message(STATUS "Found boost::coroutine.")
27
28
add_definitions(-DBT_BOOST_COROUTINE)
0 commit comments