mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
CUDA: Propagate CMAKE_CUDA_RUNTIME_LIBRARY state to try_compile
This commit is contained in:
committed by
Brad King
parent
a4ea293153
commit
1086e930dc
@@ -135,6 +135,7 @@ If set, the following variables are passed in to the generated
|
||||
try_compile CMakeLists.txt to initialize compile target properties with
|
||||
default values:
|
||||
|
||||
* :variable:`CMAKE_CUDA_RUNTIME_LIBRARY`
|
||||
* :variable:`CMAKE_ENABLE_EXPORTS`
|
||||
* :variable:`CMAKE_LINK_SEARCH_START_STATIC`
|
||||
* :variable:`CMAKE_LINK_SEARCH_END_STATIC`
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user