Skip to content

Commit 01c9a5b

Browse files
removed v2/test_impl target
1 parent ed70996 commit 01c9a5b

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

test/v2/CMakeLists.txt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
enable_testing()
22

3-
add_library(boost_process_v2_test_impl OBJECT test_impl.cpp)
4-
5-
if (WIN32)
6-
target_compile_definitions(boost_process_v2_test_impl PUBLIC WIN32_LEAN_AND_MEAN=1)
7-
target_link_libraries(boost_process_v2_test_impl Boost::process Boost::unit_test_framework Boost::process Ntdll)
8-
else()
9-
target_link_libraries(boost_process_v2_test_impl Boost::process Boost::unit_test_framework Boost::process)
10-
endif()
11-
123
function(boost_process_v2_standalone_test name)
13-
add_executable(boost_process_v2_${name} ${name}.cpp)
14-
target_link_libraries(boost_process_v2_${name} Boost::process Boost::system Boost::filesystem boost_process_v2_test_impl)
4+
add_executable(boost_process_v2_${name} ${name}.cpp test_impl.cpp)
5+
target_link_libraries(boost_process_v2_${name} Boost::process Boost::system Boost::filesystem Boost::unit_test_framework )
6+
if (WIN32)
7+
target_compile_definitions(boost_process_v2_${name} PUBLIC WIN32_LEAN_AND_MEAN=1)
8+
target_link_libraries(boost_process_v2_${name} PUBLIC Ntdll)
9+
endif()
1510
add_test(NAME boost_process_v2_${name} COMMAND $<TARGET_FILE:boost_process_v2_${name}> )
1611
endfunction()
1712

0 commit comments

Comments
 (0)