File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,24 @@ set(PROGRAM_OPTIONS_LIBRARIES
4
4
boost_program_options
5
5
boost_test_exec_monitor )
6
6
7
+ set (BOOST_TEST_EXEC_MONITOR_SUFFIX "" )
8
+ if (NOT BUILD_SINGLE_THREADED )
9
+ set (BOOST_TEST_EXEC_MONITOR_SUFFIX "-mt" )
10
+ endif ()
11
+ set (BOOST_TEST_EXEC_MONITOR_SUFFIX "${BOOST_TEST_EXEC_MONITOR_SUFFIX} -static" )
12
+ if (NOT BUILD_RELEASE )
13
+ set (BOOST_TEST_EXEC_MONITOR_SUFFIX "${BOOST_TEST_EXEC_MONITOR_SUFFIX} -debug" )
14
+ endif ()
15
+
7
16
macro (program_options_test_run TESTNAME )
8
17
boost_test_run (${TESTNAME}
9
- DEPENDS boost_program_options boost_test_exec_monitor STATIC )
18
+ STATIC
19
+ DEPENDS boost_program_options boost_test_exec_monitor )
10
20
boost_test_run ("${TESTNAME} _dll"
11
- "${TESTNAME} .cpp"
12
- DEPENDS boost_program_options boost_test_exec_monitor-static SHARED )
21
+ ${TESTNAME} .cpp
22
+ SHARED
23
+ DEPENDS boost_program_options
24
+ "boost_test_exec_monitor${BOOST_TEST_EXEC_MONITOR_SUFFIX} " )
13
25
endmacro (program_options_test_run )
14
26
15
27
program_options_test_run (options_description_test )
You can’t perform that action at this time.
0 commit comments