From 7919c9fd0b2fa42cfdb870ef3ff19df078560d30 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Fri, 12 Jul 2024 07:52:51 +0800 Subject: [PATCH] b2 link fixes. --- CMakeLists.txt | 2 +- build/Jamfile | 12 ++++++++++++ test/v2/Jamfile.jam | 5 ----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdb83c64..c009f2f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ else() endif() if (WIN32) - target_link_libraries(boost_process PUBLIC ntdll) + target_link_libraries(boost_process PUBLIC ntdll shell32 Advapi32 user32) endif() if(BUILD_SHARED_LIBS) diff --git a/build/Jamfile b/build/Jamfile index 1a1c3451..2166181c 100644 --- a/build/Jamfile +++ b/build/Jamfile @@ -40,11 +40,23 @@ alias process_sources shell.cpp ; +if [ os.name ] = NT +{ + lib shell32 ; + lib Advapi32 ; + lib Ntdll ; + lib user32 ; +} + lib boost_process : process_sources : requirements BOOST_PROCESS_SOURCE=1 shared:BOOST_PROCESS_DYN_LINK=1 boost:/boost//filesystem + windows:shell32 + windows:user32 + windows:Ntdll + windows:Advapi32 : usage-requirements shared:BOOST_PROCESS_DYN_LINK=1 boost:/boost//filesystem diff --git a/test/v2/Jamfile.jam b/test/v2/Jamfile.jam index fcaa8130..58baacf0 100644 --- a/test/v2/Jamfile.jam +++ b/test/v2/Jamfile.jam @@ -43,15 +43,10 @@ exe target : target.cpp : windows:Ntdll ; - lib test_impl : test_impl.cpp filesystem /boost//process : BOOST_PROCESS_V2_SEPARATE_COMPILATION=1 BOOST_TEST_IGNORE_SIGCHLD=1 static - windows:shell32 - windows:user32 - windows:Ntdll - windows:Advapi32 ; test-suite standalone :