diff options
author | Brad King <brad.king@kitware.com> | 2018-10-29 17:32:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-29 17:40:47 (GMT) |
commit | 0033676796748bd8fe00f3f96d3470405cdb94fe (patch) | |
tree | d6b61e5b675a3cc6686f41fdeb1926acdadfe914 /Modules/Platform/Windows-NVIDIA-CUDA.cmake | |
parent | 02f566a5592ac0438f03a84d713bae6913a7e39a (diff) | |
download | CMake-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/Windows-NVIDIA-CUDA.cmake')
-rw-r--r-- | Modules/Platform/Windows-NVIDIA-CUDA.cmake | 2 |
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}") |