Skip to content

Commit

Permalink
add target_precompile_headers in algebra
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 20, 2024
1 parent d11e8c1 commit 51af40a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crypto3/libs/algebra/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#---------------------------------------------------------------------------#

cm_test_link_libraries(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME}
crypto3::pch
crypto3_pch
Boost::unit_test_framework
Boost::random)

Expand All @@ -28,6 +28,8 @@ macro(define_runtime_algebra_test name)
set_target_properties(${test_name} PROPERTIES CXX_STANDARD 17
CXX_STANDARD_REQUIRED TRUE)

target_precompile_headers(${test_name} REUSE_FROM crypto3_pch)

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(${test_name} PRIVATE "-fconstexpr-steps=2147483647" "-ftemplate-backtrace-limit=0")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
Expand Down

0 comments on commit 51af40a

Please sign in to comment.