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