Skip to content

Commit

Permalink
Enable newer lambda processor for MSVC
Browse files Browse the repository at this point in the history
The legacy lambda processor has problems parsing some lambda functions in LLAMA, like polymorphic lambdas with attributes, e.g. used in constructField.
  • Loading branch information
bernhardmgruber committed Jan 21, 2024
1 parent 3c73b92 commit 5cfc8d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ endif()
if (MSVC)
# FIXME(bgruber): alpaka uses M_PI, so we need to make it available on MSVC. This may be fixed in alpaka 1.0.0.
target_compile_definitions(llama INTERFACE _USE_MATH_DEFINES)
target_compile_options(${PROJECT_NAME} INTERFACE /Zc:lambda) # needed in C++17 mode, remove when upgrading to C++20
endif()

# CUDA
Expand Down

0 comments on commit 5cfc8d0

Please sign in to comment.