2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

Fixed cmake for tests

Closes #515
This commit is contained in:
Klemens Morgenstern
2025-10-06 12:41:04 +08:00
parent 484d6e7a90
commit 02e14e8fff
2 changed files with 2 additions and 4 deletions

View File

@@ -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)
boost_process_v2_test_with_target(ext)

View File

@@ -33,7 +33,6 @@ project : requirements
<os>NT,<toolset>cw:<library>ws2_32
<os>NT,<toolset>gcc:<library>ws2_32
<os>NT,<toolset>gcc:<library>Bcrypt
<define>BOOST_PROCESS_V2_SEPARATE_COMPILATION=1
<library>/boost/test//included
;