Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 8a3c405

Browse files
add options to compile time, not to runtime
1 parent 1bd8672 commit 8a3c405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ macro(define_blueprint_test test)
2222

2323
set(TEST_RESULTS_DIR "${CMAKE_CURRENT_BINARY_DIR}/junit_results")
2424
set(TEST_LOGS_DIR "${TEST_RESULTS_DIR}/logs")
25-
set(additional_args ${ARGV2} "--log_format=JUNIT"
25+
set(additional_args "--log_format=JUNIT"
2626
"--log_sink=${TEST_LOGS_DIR}/${full_test_name}.xml")
2727

2828
cm_test(NAME ${full_test_name} SOURCES ${test}.cpp ARGS ${additional_args})
@@ -36,9 +36,9 @@ macro(define_blueprint_test test)
3636
set_target_properties(${full_test_name} PROPERTIES CXX_STANDARD 17)
3737

3838
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
39-
target_compile_options(${full_test_name} PRIVATE "-fconstexpr-steps=2147483647" "-ftemplate-backtrace-limit=0")
39+
target_compile_options(${full_test_name} PRIVATE "${ARGV2}" "-fconstexpr-steps=2147483647" "-ftemplate-backtrace-limit=0")
4040
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
41-
target_compile_options(${full_test_name} PRIVATE "-fconstexpr-ops-limit=4294967295" "-ftemplate-backtrace-limit=0")
41+
target_compile_options(${full_test_name} PRIVATE "${ARGV2}" "-fconstexpr-ops-limit=4294967295" "-ftemplate-backtrace-limit=0")
4242
endif()
4343

4444
get_target_property(target_type Boost::unit_test_framework TYPE)

0 commit comments

Comments
 (0)