From 88eb32c80d4b1ae366b71935db113b4ee1e179ab Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Fri, 7 Mar 2025 20:32:21 -0300 Subject: [PATCH] build: cmake subdirectory tests skip Boost.Context --- test/cmake_test/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cmake_test/CMakeLists.txt b/test/cmake_test/CMakeLists.txt index 0937e93a..ef7e70fc 100644 --- a/test/cmake_test/CMakeLists.txt +++ b/test/cmake_test/CMakeLists.txt @@ -40,6 +40,12 @@ elseif(BOOST_CI_URL_SUBDIR_TEST) set(BUILD_TESTING OFF CACHE BOOL "Build the tests." FORCE) file(GLOB subdirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/../../.. ${CMAKE_CURRENT_SOURCE_DIR}/../../../*) foreach(subdir ${subdirs}) + # We explicitly don't want to add the context library + # because we know Boost.URL doesn't depend on it and + # causes issues with MASM in many environments. + if (subdir STREQUAL "context") + continue() + endif() # This is testing the case when the super-project is not available # and users want to add libraries as subdirectories. # According to the convention above, users should scan all dependencies