Skip to content

Commit 17e20f3

Browse files
committed
[CMake] workaround CMP0093
1 parent 193f436 commit 17e20f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS serialization system thread)
3737
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED PKG_CONFIG_REQUIRES eigen3)
3838
SEARCH_FOR_PTHREAD()
3939

40-
IF(Boost_VERSION GREATER 107299)
40+
IF(Boost_VERSION GREATER 107299 OR Boost_VERSION_MACRO GREATER 107299)
4141
# Silence a warning about a deprecated use of boost bind by boost >= 1.73
4242
# without dropping support for boost < 1.73
4343
ADD_DEFINITIONS(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)

0 commit comments

Comments
 (0)