Skip to content

Commit

Permalink
/Zc:lambda as generated expression
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Feb 12, 2024
1 parent b65a5b1 commit a0ec5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-Wno-c++1z-extensions -Wno-psabi
-Wno-unknown-warning-option)
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
if (WIN32)
add_compile_options(/wd4141)
target_compile_options(kfr INTERFACE /Zc:lambda)
target_compile_options(kfr INTERFACE $<$<CXX_COMPILER_ID:MSVC>:/Zc:lambda>)
endif ()

if (NOT KFR_ENABLE_DFT)
Expand Down

0 comments on commit a0ec5d2

Please sign in to comment.