Browse Source

CUDA: Add support for CMAKE_CUDA_COMPILE_OPTIONS_VISIBILITY

Robert Maynard 9 years ago
parent
commit
a5e806b3f5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmTarget.cxx

+ 1 - 0
Source/cmTarget.cxx

@@ -360,6 +360,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
       this->GetType() != cmStateEnums::UTILITY) {
     this->SetPropertyDefault("C_VISIBILITY_PRESET", CM_NULLPTR);
     this->SetPropertyDefault("CXX_VISIBILITY_PRESET", CM_NULLPTR);
+    this->SetPropertyDefault("CUDA_VISIBILITY_PRESET", CM_NULLPTR);
     this->SetPropertyDefault("VISIBILITY_INLINES_HIDDEN", CM_NULLPTR);
   }