Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98b41b9

Browse files
authored
replace dot by zero in boost version (BehaviorTree#197)
1 parent b23491f commit 98b41b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ endif()
1717
find_package(Boost COMPONENTS coroutine QUIET)
1818
if(Boost_FOUND)
1919
include_directories(${Boost_INCLUDE_DIRS})
20-
if(NOT Boost_VERSION VERSION_LESS 105900)
20+
string(REPLACE "." "0" Boost_VERSION_NODOT ${Boost_VERSION})
21+
if(NOT Boost_VERSION_NODOT VERSION_LESS 105900)
2122
message(STATUS "Found boost::coroutine2.")
2223
add_definitions(-DBT_BOOST_COROUTINE2)
2324
set(BT_COROUTINES true)
24-
elseif(NOT Boost_VERSION VERSION_LESS 105300)
25+
elseif(NOT Boost_VERSION_NODOT VERSION_LESS 105300)
2526
message(STATUS "Found boost::coroutine.")
2627
include_directories(${Boost_INCLUDE_DIRS})
2728
add_definitions(-DBT_BOOST_COROUTINE)

0 commit comments

Comments
 (0)