mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
a4d502a5bf
Checks added in commit 81b4d10d8f (CUDA: More exhaustive checks to
determine when to do device linking, 2019-05-09, v3.15.0-rc1~82^2)
assumed that CUDA properties would be set only if CUDA is enabled.
We cannot do a device link step if we do not have the CUDA language
enabled. This was discovered as some projects unconditionally set CUDA
properties such as `CUDA_RESOLVE_DEVICE_SYMBOLS` even when the CUDA
language has not been enabled.
Fixes: #19432
10 lines
173 B
C++
10 lines
173 B
C++
|
|
#include <type_traits>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
// make sure we have c++11 enabled
|
|
using returnv = std::integral_constant<int, 0>;
|
|
return returnv::value;
|
|
}
|