From 02e14e8fff77ce321dabfb59c284ac4026c9af45 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Mon, 6 Oct 2025 12:41:04 +0800 Subject: [PATCH] Fixed cmake for tests Closes #515 --- test/v2/CMakeLists.txt | 5 ++--- test/v2/Jamfile.jam | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/v2/CMakeLists.txt b/test/v2/CMakeLists.txt index 7d6a5c65..d7907447 100644 --- a/test/v2/CMakeLists.txt +++ b/test/v2/CMakeLists.txt @@ -1,7 +1,6 @@ enable_testing() -add_library(boost_process_v2_test_impl test_impl.cpp) -target_compile_definitions(boost_process_v2_test_impl PUBLIC -DBOOST_PROCESS_V2_SEPARATE_COMPILATION=1) +add_library(boost_process_v2_test_impl OBJECT test_impl.cpp) if (WIN32) target_compile_definitions(boost_process_v2_test_impl PUBLIC WIN32_LEAN_AND_MEAN=1) @@ -36,4 +35,4 @@ function(boost_process_v2_test_with_target name) endfunction() boost_process_v2_test_with_target(process) -boost_process_v2_test_with_target(ext) \ No newline at end of file +boost_process_v2_test_with_target(ext) diff --git a/test/v2/Jamfile.jam b/test/v2/Jamfile.jam index 20aaf06f..e38452ce 100644 --- a/test/v2/Jamfile.jam +++ b/test/v2/Jamfile.jam @@ -33,7 +33,6 @@ project : requirements NT,cw:ws2_32 NT,gcc:ws2_32 NT,gcc:Bcrypt - BOOST_PROCESS_V2_SEPARATE_COMPILATION=1 /boost/test//included ;