summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-15 13:24:02 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-02-15 13:24:02 (GMT)
commit8ba5c21db774cb23d223612ba67963723010e9f3 (patch)
tree7d13803b28d1946abdaad2691ec061584e49810a /Modules
parent75040fc103b763092e54274d088659da792e72e8 (diff)
parent59ed323d4648a61d911679190273c35f950e20ce (diff)
downloadCMake-8ba5c21db774cb23d223612ba67963723010e9f3.zip
CMake-8ba5c21db774cb23d223612ba67963723010e9f3.tar.gz
CMake-8ba5c21db774cb23d223612ba67963723010e9f3.tar.bz2
Merge topic 'cuda-no-Os'
59ed323d CUDA: Do not use non-existent -Os flag for nvcc
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/NVIDIA-CUDA.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake
index ae35132..7903313 100644
--- a/Modules/Compiler/NVIDIA-CUDA.cmake
+++ b/Modules/Compiler/NVIDIA-CUDA.cmake
@@ -13,7 +13,7 @@ set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA -isystem=)
string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
-string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
+string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")