commit 902d69d25ba29f8c6c0a13b038a23f05d3725b58
parent 9bc7743fec1c5fbb367280570137b984e7474d46
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Wed, 24 Jan 2024 08:45:46 +0000
Add /Zc:lambda to kfr interface
Diffstat:
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -347,6 +347,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options(/wd4141)
+ target_compile_options(kfr INTERFACE /Zc:lambda)
endif ()
if (NOT KFR_ENABLE_DFT)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
@@ -117,10 +117,6 @@ if (KFR_ENABLE_DFT)
endif ()
target_link_libraries(all_tests kfr_io)
-if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- target_compile_options(all_tests PRIVATE /Zc:lambda)
-endif ()
-
option(KFR_NO_PERF_TESTS "Disable performance tests" OFF)
if (KFR_NO_PERF_TESTS)