Skip to content

Commit 322bfb4

Browse files
committed
Fix boost warning
1 parent b6aeef6 commit 322bfb4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/core/cmake/find_utils.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ macro(clp_find_boost)
3737
endif()
3838
find_package(
3939
Boost
40-
1.81...1.88
40+
1.81
4141
REQUIRED
4242
filesystem
4343
iostreams
@@ -46,6 +46,12 @@ macro(clp_find_boost)
4646
system
4747
url
4848
)
49+
if(Boost_VERSION VERSION_GREATER 1.88)
50+
message(
51+
FATAL_ERROR
52+
"Boost version ${Boost_VERSION} is newer than the maximum allowed version (1.88.0)."
53+
)
54+
endif()
4955
endmacro()
5056

5157
# Finds and sets up Catch2.

0 commit comments

Comments
 (0)