From 51af40a63f96754d2da1c9df43f7fab54b70a259 Mon Sep 17 00:00:00 2001 From: Andrei Malashkin Date: Fri, 20 Sep 2024 14:19:51 +0200 Subject: [PATCH] add target_precompile_headers in algebra --- crypto3/libs/algebra/test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto3/libs/algebra/test/CMakeLists.txt b/crypto3/libs/algebra/test/CMakeLists.txt index 57a214b7b6..b285b8f25a 100644 --- a/crypto3/libs/algebra/test/CMakeLists.txt +++ b/crypto3/libs/algebra/test/CMakeLists.txt @@ -7,7 +7,7 @@ #---------------------------------------------------------------------------# cm_test_link_libraries(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} - crypto3::pch + crypto3_pch Boost::unit_test_framework Boost::random) @@ -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")