Skip to content

Commit

Permalink
add options to compile time, not to runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Jun 6, 2024
1 parent 1bd8672 commit 8a3c405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro(define_blueprint_test test)

set(TEST_RESULTS_DIR "${CMAKE_CURRENT_BINARY_DIR}/junit_results")
set(TEST_LOGS_DIR "${TEST_RESULTS_DIR}/logs")
set(additional_args ${ARGV2} "--log_format=JUNIT"
set(additional_args "--log_format=JUNIT"
"--log_sink=${TEST_LOGS_DIR}/${full_test_name}.xml")

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

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

get_target_property(target_type Boost::unit_test_framework TYPE)
Expand Down

0 comments on commit 8a3c405

Please sign in to comment.