diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-25 18:17:24 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-29 13:35:20 (GMT) |
commit | d718262faa262dc2fdaf67294b224743b86c40d0 (patch) | |
tree | 60d5be7cc0ebf7a5a225c34988e2d7a80e9a86c5 /Source/cmTarget.cxx | |
parent | 1d4a013dd12255f0922aecee5b7b8a2cb7ec9597 (diff) | |
download | CMake-d718262faa262dc2fdaf67294b224743b86c40d0.zip CMake-d718262faa262dc2fdaf67294b224743b86c40d0.tar.gz CMake-d718262faa262dc2fdaf67294b224743b86c40d0.tar.bz2 |
cmTarget: handle `HIP_STANDARD` like other language standards
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 76a14b8..593a019 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2423,6 +2423,7 @@ cmValue cmTarget::GetProperty(const std::string& prop) const propC_STANDARD, propCXX_STANDARD, propCUDA_STANDARD, + propHIP_STANDARD, propOBJC_STANDARD, propOBJCXX_STANDARD, propLINK_LIBRARIES, @@ -2447,8 +2448,8 @@ cmValue cmTarget::GetProperty(const std::string& prop) const }; if (specialProps.count(prop)) { if (prop == propC_STANDARD || prop == propCXX_STANDARD || - prop == propCUDA_STANDARD || prop == propOBJC_STANDARD || - prop == propOBJCXX_STANDARD) { + prop == propCUDA_STANDARD || prop == propHIP_STANDARD || + prop == propOBJC_STANDARD || prop == propOBJCXX_STANDARD) { auto propertyIter = this->impl->LanguageStandardProperties.find(prop); if (propertyIter == this->impl->LanguageStandardProperties.end()) { return nullptr; |