commit 3c78876bf9f1041ff88801cc660f84e1d7990743
parent 1f9706197abfcd4b4ec19ded3ce37b70ebd9a223
Author: Marcus Asteborg <maastebo@microsoft.com>
Date: Thu, 17 Sep 2020 17:17:10 -0700
Use new lambda processor in vs2019 to fix compiler error in vec unaligned_read
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
@@ -139,6 +139,10 @@ if (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 ()
+
function (add_x86_test ARCH)
set(NAME ${ARCH})