Skip to content

Commit

Permalink
Merge d519256 into 687517f
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored May 10, 2022
2 parents 687517f + d519256 commit 90571e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/viewcopy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE llama::llama OpenMP::OpenMP_CXX)

if (MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /arch:AVX2)
if (MSVC_VERSION VERSION_GREATER_EQUAL 1930)
if (MSVC_VERSION VERSION_GREATER_EQUAL 1930 AND MSVC_VERSION VERSION_LESS 1932)
# VS 2022 has a new lambda processor that has troubles with OpenMP pragmas:
# https://developercommunity.visualstudio.com/t/OpenMP-in-lambda-expression-compile-erro/1501041
# And the workaround flag /Zc:lambda- needs to come after the CXX standard,
Expand Down

0 comments on commit 90571e9

Please sign in to comment.