Due to a key rollover of our WebSSO provider there might be a short downtime of this Gitlab server on Friday 2.

Commit c7852c3b authored by Martin Bauer's avatar Martin Bauer

CMake fix: CUDA code generation did not work correctly in walberla apps

parent 7c8f815e
...@@ -218,11 +218,10 @@ function ( waLBerla_add_executable ) ...@@ -218,11 +218,10 @@ function ( waLBerla_add_executable )
return() return()
endif() endif()
if ( CUDA_FOUND ) cuda_add_executable( ${ARG_NAME} ${sourceFiles} ${generatedSourceFiles} )
cuda_add_executable( ${ARG_NAME} ${sourceFiles} ${generatedSourceFiles} ${generatorSourceFiles} )
else() else()
add_executable( ${ARG_NAME} ${sourceFiles} ${generatedSourceFiles} ${generatorSourceFiles} ) add_executable( ${ARG_NAME} ${sourceFiles} ${generatedSourceFiles} )
endif() endif()
set_source_files_properties( ${generatedSourceFiles} PROPERTIES GENERATED TRUE ) set_source_files_properties( ${generatedSourceFiles} PROPERTIES GENERATED TRUE )
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