Skip to content

Commit 1541082

Browse files
committed
Quench deprecation warnings when compiling the tutorials.
1 parent b08a850 commit 1541082

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tutorials/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function(ADD_PAGMO_TUTORIAL arg1)
1010
# Set the minimum C++ standard to C++17
1111
target_compile_features(${arg1} PRIVATE cxx_std_17)
1212
set_property(TARGET ${arg1} PROPERTY CXX_EXTENSIONS NO)
13+
target_compile_definitions(${arg1} PRIVATE BOOST_ALLOW_DEPRECATED_HEADERS)
1314
add_test(${arg1} ${arg1})
1415
endfunction()
1516

0 commit comments

Comments
 (0)