Skip to content

Commit e1dc4b5

Browse files
committed
refactor: set cmake policy to silence noisy warning.
1 parent 90d94be commit e1dc4b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/Boost.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
# Allow using legacy Boost find_package call.
3+
if(POLICY CMP0167)
4+
cmake_policy(SET CMP0167 OLD)
5+
endif()
6+
27
function(find_boost_library)
38
if ( DEFINED ENV{BOOST_INC} AND DEFINED ENV{BOOST_LIB} )
49
message( "BOOST_INC:" $ENV{BOOST_INC} )

0 commit comments

Comments
 (0)