diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-05-18 14:54:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-20 18:36:55 (GMT) |
commit | 1086e930dc8ad94847f17f627673db8f7a3fb3ab (patch) | |
tree | 07a66fd365a500d54df70303361a29b091a25bf5 /Source/cmCoreTryCompile.cxx | |
parent | a4ea2931532d7b5b468bd2670a5f23198763a24e (diff) | |
download | CMake-1086e930dc8ad94847f17f627673db8f7a3fb3ab.zip CMake-1086e930dc8ad94847f17f627673db8f7a3fb3ab.tar.gz CMake-1086e930dc8ad94847f17f627673db8f7a3fb3ab.tar.bz2 |
CUDA: Propagate CMAKE_CUDA_RUNTIME_LIBRARY state to try_compile
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index da04396..73f099b 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -40,6 +40,8 @@ static std::string const kCMAKE_CXX_LINK_NO_PIE_SUPPORTED = "CMAKE_CXX_LINK_NO_PIE_SUPPORTED"; static std::string const kCMAKE_CXX_LINK_PIE_SUPPORTED = "CMAKE_CXX_LINK_PIE_SUPPORTED"; +static std::string const kCMAKE_CUDA_RUNTIME_LIBRARY = + "CMAKE_CUDA_RUNTIME_LIBRARY"; static std::string const kCMAKE_ENABLE_EXPORTS = "CMAKE_ENABLE_EXPORTS"; static std::string const kCMAKE_LINK_SEARCH_END_STATIC = "CMAKE_LINK_SEARCH_END_STATIC"; @@ -719,6 +721,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, vars.insert(kCMAKE_C_COMPILER_TARGET); vars.insert(kCMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN); vars.insert(kCMAKE_CXX_COMPILER_TARGET); + vars.insert(kCMAKE_CUDA_RUNTIME_LIBRARY); vars.insert(kCMAKE_ENABLE_EXPORTS); vars.insert(kCMAKE_LINK_SEARCH_END_STATIC); vars.insert(kCMAKE_LINK_SEARCH_START_STATIC); |