diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-08-29 16:07:40 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-09-02 12:04:39 (GMT) |
commit | 93f2cd5b7c799492bf605f8c704cd5b29404d18f (patch) | |
tree | 6e312067710c36aa4afb34c9ba618a2e491751a4 /Tests/Cuda | |
parent | 96564c5b2d84568459c2b594a7db3baccb524260 (diff) | |
download | CMake-93f2cd5b7c799492bf605f8c704cd5b29404d18f.zip CMake-93f2cd5b7c799492bf605f8c704cd5b29404d18f.tar.gz CMake-93f2cd5b7c799492bf605f8c704cd5b29404d18f.tar.bz2 |
CMakeParseImplicitLinkInfo: Better detection of msvc
Use the compiler id information in addition to checking for `cl.exe`.
Diffstat (limited to 'Tests/Cuda')
-rw-r--r-- | Tests/Cuda/SeparableCompCXXOnly/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/Cuda/SeparableCompCXXOnly/CMakeLists.txt b/Tests/Cuda/SeparableCompCXXOnly/CMakeLists.txt index 97670e3..447e137 100644 --- a/Tests/Cuda/SeparableCompCXXOnly/CMakeLists.txt +++ b/Tests/Cuda/SeparableCompCXXOnly/CMakeLists.txt @@ -1,3 +1,6 @@ -project(SeparableCompCXXOnly LANGUAGES CXX CUDA) +# Set CMAKE_CUDA_SEPARABLE_COMPILATION before `project` +# so we verify that compiler/linker verbose extraction +# works as required when a `dlink` is part of it set(CMAKE_CUDA_SEPARABLE_COMPILATION ON) +project(SeparableCompCXXOnly LANGUAGES CXX CUDA) add_executable(SeparableCompCXXOnly main.cpp) |