Skip to content

Commit

Permalink
fix clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 9, 2024
1 parent 9283892 commit 0f925bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion transpiler/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
include(CMTest)

cm_test_link_libraries(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME}

crypto3::all
${Boost_LIBRARIES})

Expand All @@ -18,6 +17,10 @@ add_custom_target(compile_and_run_transpiler_tests)
macro(define_transpiler_test name)
cm_test(NAME transpiler_${name}_test SOURCES ${name}.cpp)

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(transpiler_${name}_test PRIVATE "-fconstexpr-steps=2147483647")
endif()

target_include_directories(transpiler_${name}_test PRIVATE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>"
Expand Down

0 comments on commit 0f925bd

Please sign in to comment.