From 19f43bea79d4dc46dd6bf0ae49454d95833e8233 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Fri, 19 Jun 2026 13:47:17 +0200 Subject: [PATCH] activate flags for cuda --- applications/plugins/SofaCUDA/Core/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/plugins/SofaCUDA/Core/CMakeLists.txt b/applications/plugins/SofaCUDA/Core/CMakeLists.txt index 7510a075423..005d5939da9 100644 --- a/applications/plugins/SofaCUDA/Core/CMakeLists.txt +++ b/applications/plugins/SofaCUDA/Core/CMakeLists.txt @@ -16,6 +16,10 @@ if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES) endif() endif() +if(WIN32) + set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler=/Zc:preprocessor") +endif() + set(SOFACUDA_CORE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src") set(HEADER_FILES