Fix CMAKE_CUDA_FLAGS, resolves #166
This commit is contained in:
parent
9954b7d38c
commit
ffae3ba83f
@ -32,7 +32,8 @@ macro(setup)
|
|||||||
register_definitions(${MEM})
|
register_definitions(${MEM})
|
||||||
|
|
||||||
# add -forward-unknown-to-host-compiler for compatibility reasons
|
# add -forward-unknown-to-host-compiler for compatibility reasons
|
||||||
set(CMAKE_CUDA_FLAGS ${CMAKE_CUDA_FLAGS} "-forward-unknown-to-host-compiler -arch=${CUDA_ARCH}" ${CUDA_EXTRA_FLAGS})
|
set(CMAKE_CUDA_FLAGS ${CMAKE_CUDA_FLAGS} "-forward-unknown-to-host-compiler" "-arch=${CUDA_ARCH}" ${CUDA_EXTRA_FLAGS})
|
||||||
|
string(REPLACE ";" " " CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS}")
|
||||||
|
|
||||||
# CMake defaults to -O2 for CUDA at Release, let's wipe that and use the global RELEASE_FLAG
|
# CMake defaults to -O2 for CUDA at Release, let's wipe that and use the global RELEASE_FLAG
|
||||||
# appended later
|
# appended later
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user