Commit 1fc35f91 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

fix suffix for c++

parent c3f1cd80
......@@ -1107,10 +1107,10 @@ if (WALBERLA_BUILD_WITH_CUDA AND (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "11.0
endif()
# Can be used in CMake files containing generated files where the file suffix is dependent on the target
if (CUDA_FOUND)
if (WALBERLA_BUILD_WITH_CUDA AND CUDA_FOUND)
set(CODEGEN_FILE_SUFFIX "cu")
else()
set(CODEGEN_FILE_SUFFIX "cu")
set(CODEGEN_FILE_SUFFIX "cpp")
endif()
############################################################################################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment