Skip to content

Commit fd9a0cf

Browse files
fanquakerustaceanrob
authored andcommitted
cmake: drop vcpkg Boost Test check
1 parent 7bfb493 commit fd9a0cf

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

cmake/module/AddBoostIfNeeded.cmake

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ function(add_boost_if_needed)
3636
# We don't use multi_index serialization.
3737
BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
3838
)
39-
if(DEFINED VCPKG_TARGET_TRIPLET)
40-
# Workaround for https://github.com/microsoft/vcpkg/issues/36955.
41-
target_compile_definitions(Boost::headers INTERFACE
42-
BOOST_NO_USER_CONFIG
43-
)
44-
endif()
4539

4640
# Prevent use of std::unary_function, which was removed in C++17,
4741
# and will generate warnings with newer compilers for Boost
@@ -62,10 +56,4 @@ function(add_boost_if_needed)
6256
)
6357
endif()
6458

65-
# Some package managers, such as vcpkg, vendor Boost.Test separately
66-
# from the rest of the headers, so we have to check for it individually.
67-
if(BUILD_TESTS AND DEFINED VCPKG_TARGET_TRIPLET)
68-
find_package(boost_included_unit_test_framework ${Boost_VERSION} EXACT REQUIRED CONFIG)
69-
endif()
70-
7159
endfunction()

0 commit comments

Comments
 (0)