diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-09-04 20:29:44 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-11-14 16:36:44 (GMT) |
commit | bbaf24341026cdacd1e313dd3f8e3501e9c4070e (patch) | |
tree | b88916748a529370a937b85c1b49b3da7887f310 /Source | |
parent | a92f8d96162b9e6c29ad0bd81b8fd05b387d94a9 (diff) | |
download | CMake-bbaf24341026cdacd1e313dd3f8e3501e9c4070e.zip CMake-bbaf24341026cdacd1e313dd3f8e3501e9c4070e.tar.gz CMake-bbaf24341026cdacd1e313dd3f8e3501e9c4070e.tar.bz2 |
CUDA: add support for specifying an explicit host compiler.
Diffstat (limited to 'Source')
-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 3b46fc0..b1d3775 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -44,6 +44,8 @@ static std::string const kCMAKE_TRY_COMPILE_OSX_ARCHITECTURES = "CMAKE_TRY_COMPILE_OSX_ARCHITECTURES"; static std::string const kCMAKE_TRY_COMPILE_PLATFORM_VARIABLES = "CMAKE_TRY_COMPILE_PLATFORM_VARIABLES"; +static std::string const kCMAKE_CUDA_HOST_COMPILER = + "CMAKE_CUDA_HOST_COMPILER"; int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, bool isTryRun) @@ -453,6 +455,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv, vars.insert(kCMAKE_OSX_SYSROOT); vars.insert(kCMAKE_POSITION_INDEPENDENT_CODE); vars.insert(kCMAKE_SYSROOT); + vars.insert(kCMAKE_CUDA_HOST_COMPILER); if (const char* varListStr = this->Makefile->GetDefinition( kCMAKE_TRY_COMPILE_PLATFORM_VARIABLES)) { |