File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,13 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
199
199
list (APPEND CUDA_NVCC_FLAGS ${CMAKE_CXX_FLAGS_RELEASE} )
200
200
endif ()
201
201
else (NOT WIN32 )
202
+ list (APPEND CUDA_NVCC_FLAGS "--compiler-options;/bigobj" )
202
203
if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
203
- list (APPEND CUDA_NVCC_FLAGS "-g -G --compiler-options;/bigobj" )
204
+ list (APPEND CUDA_NVCC_FLAGS "-g -G" )
205
+ # match the cl's _ITERATOR_DEBUG_LEVEL
206
+ list (APPEND CUDA_NVCC_FLAGS "-D_DEBUG" )
204
207
elseif (CMAKE_BUILD_TYPE STREQUAL "Release" )
205
- list (APPEND CUDA_NVCC_FLAGS "-O3 -DNDEBUG --compiler-options;/bigobj " )
208
+ list (APPEND CUDA_NVCC_FLAGS "-O3 -DNDEBUG" )
206
209
else ()
207
210
message (FATAL "Windows only support Release or Debug build now. Please set visual studio build type to Release/Debug, x64 build." )
208
211
endif ()
You can’t perform that action at this time.
0 commit comments