mirror of
https://github.com/reactos/CMake.git
synced 2025-01-09 13:10:51 +00:00
25 lines
932 B
CMake
25 lines
932 B
CMake
set(CMAKE_CUDA_VERBOSE_FLAG "-v")
|
|
|
|
|
|
set(CMAKE_CUDA_COMPILE_OPTIONS_PIE -Xcompiler=-fPIE)
|
|
set(CMAKE_CUDA_COMPILE_OPTIONS_PIC -Xcompiler=-fPIC)
|
|
#CMAKE_SHARED_LIBRARY_CUDA_FLAGS is sent to the host linker so we don' need
|
|
#to forward it through nvcc
|
|
set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC)
|
|
set(CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS -shared)
|
|
set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA -isystem=)
|
|
set(CMAKE_CUDA_COMPILE_OPTIONS_VISIBILITY -Xcompiler=-fvisibility=)
|
|
|
|
set(CMAKE_CUDA_FLAGS_INIT " ")
|
|
set(CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
|
|
set(CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
|
|
set(CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
|
set(CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
|
|
|
set(CMAKE_CUDA98_STANDARD_COMPILE_OPTION "")
|
|
set(CMAKE_CUDA98_EXTENSION_COMPILE_OPTION "")
|
|
set(CMAKE_CUDA11_STANDARD_COMPILE_OPTION "-std=c++11")
|
|
set(CMAKE_CUDA11_EXTENSION_COMPILE_OPTION "-std=c++11")
|
|
|
|
set(CMAKE_CUDA_STANDARD_DEFAULT 98)
|