Commit 792732f9 authored by Mike Kremer's avatar Mike Kremer

Enabled debug compilation for cuda sources if in debug mode.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11811 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 81d49fed
......@@ -474,7 +474,13 @@ function (_build_openflipper_plugin plugin)
list ( APPEND CMAKE_CC_FLAGS "-fPIC" )
# Prepare the files
CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS})
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
message("Compiling cuda sources in debug mode")
CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS} " -g -G -deviceemu -Xcompile ")
else()
message("Compiling cuda sources in release mode")
CUDA_COMPILE(${_PLUGIN}_CUDA_GENERATED_FILES ${${_PLUGIN}_CUDA_SRCS})
endif()
# Create the library containing all cuda files
CUDA_ADD_LIBRARY(${_PLUGIN}_cuda_lib STATIC ${${_PLUGIN}_CUDA_GENERATED_FILES} )
......
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