diff options
author | Brad King <brad.king@kitware.com> | 2024-03-24 18:33:17 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-03-24 18:33:31 (GMT) |
commit | 899af837559d3003ac83b85891488b12105e5b6e (patch) | |
tree | 365a9e76fedf2ac1dd46bd1453af6ff893ab720e /Source/cmCoreTryCompile.cxx | |
parent | dbe05e4d7c787a0293e0f9563d936b51883e6495 (diff) | |
parent | 98cc86e26545300c120481fc230b9fd270dbb226 (diff) | |
download | CMake-899af837559d3003ac83b85891488b12105e5b6e.zip CMake-899af837559d3003ac83b85891488b12105e5b6e.tar.gz CMake-899af837559d3003ac83b85891488b12105e5b6e.tar.bz2 |
Merge topic 'linker-vars-propagate-try_compile'
98cc86e265 try_compile(): Include languages with _ or - when passing linker vars
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9361
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index 25fc52f..6d3e01c 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -1164,7 +1164,7 @@ cm::optional<cmTryCompileResult> cmCoreTryCompile::TryCompileCode( vars.insert(kCMAKE_LINKER_TYPE); auto defs = this->Makefile->GetDefinitions(); cmsys::RegularExpression linkerTypeDef{ - "^CMAKE_[A-Za-z]+_USING_LINKER_" + "^CMAKE_[A-Za-z_-]+_USING_LINKER_" }; for (auto const& def : defs) { if (linkerTypeDef.find(def)) { |