From 92d2f2ee0238a81d8b93bb365bc4169a3eca8af0 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Mon, 13 Nov 2023 17:29:28 +0100 Subject: [PATCH] Disable alpaka PIC example for recent MSVC MSVC fails to compile the example starting with version 19.37. --- examples/alpaka/pic/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/alpaka/pic/CMakeLists.txt b/examples/alpaka/pic/CMakeLists.txt index 2a6a73df55..4d41a85823 100644 --- a/examples/alpaka/pic/CMakeLists.txt +++ b/examples/alpaka/pic/CMakeLists.txt @@ -4,6 +4,12 @@ cmake_minimum_required (VERSION 3.18.3) project(llama-alpaka-pic) +if (MSVC AND MSVC_VERSION VERSION_GREATER_EQUAL 19.37) + # a failing MSVC version is 19.37.32825.0. A working version was 19.35.32217.1. + message(WARNING "MSVC 19.37 or higher fails with an internal error on the alpaka pic example, so it is disabled.") + return() +endif() + if (NOT TARGET llama::llama) find_package(llama REQUIRED) endif()