Skip to content

Commit

Permalink
kokkos#291: make sure parenthesis operator is enabled for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Nov 2, 2023
1 parent 78bf134 commit e26f7ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ function(mdspan_add_benchmark EXENAME)
target_include_directories(${EXENAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/benchmarks>
)
# Set flag to build with parenthesis enabled
target_compile_definitions(${EXENAME} PRIVATE MDSPAN_USE_PAREN_OPERATOR=1)
endfunction()

find_package(benchmark REQUIRED)
Expand Down

0 comments on commit e26f7ac

Please sign in to comment.