diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake index 05562552def22989ec46377a1ca6e4533d26aa9e..91ed5344588fbaa1d5010739999271a29e31ff95 100644 --- a/cmake/plugin.cmake +++ b/cmake/plugin.cmake @@ -479,7 +479,7 @@ function (_build_openflipper_plugin plugin) CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS} OPTIONS -g -G --device-emulation -Xcompiler) else() message("Compiling cuda sources in release mode") - CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS}) + CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS} OPTIONS -O2) endif() # Create the library containing all cuda files