summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-29 17:32:07 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-29 17:40:47 (GMT)
commit0033676796748bd8fe00f3f96d3470405cdb94fe (patch)
treed6b61e5b675a3cc6686f41fdeb1926acdadfe914 /Modules/Platform
parent02f566a5592ac0438f03a84d713bae6913a7e39a (diff)
downloadCMake-0033676796748bd8fe00f3f96d3470405cdb94fe.zip
CMake-0033676796748bd8fe00f3f96d3470405cdb94fe.tar.gz
CMake-0033676796748bd8fe00f3f96d3470405cdb94fe.tar.bz2
CUDA: Enable RC language on Windows
We need the resource compiler to place manifests in binaries. Make sure it is available.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-NVIDIA-CUDA.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-NVIDIA-CUDA.cmake b/Modules/Platform/Windows-NVIDIA-CUDA.cmake
index ba1638f..631a7de 100644
--- a/Modules/Platform/Windows-NVIDIA-CUDA.cmake
+++ b/Modules/Platform/Windows-NVIDIA-CUDA.cmake
@@ -67,3 +67,5 @@ string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -Xcompiler=\"-MD -Zi -O2 -O
string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -Xcompiler=\"-MD -O1 -Ob1\" -DNDEBUG")
set(CMAKE_CUDA_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
+
+__windows_compiler_msvc_enable_rc("${_PLATFORM_DEFINES} ${_PLATFORM_DEFINES_CXX}")