summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-12 14:18:33 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-03 22:07:52 (GMT)
commit93246685177fc3d64a6b5dc01904a4437e6c2a9e (patch)
treedccd40785871497aa4f35bb2583851180745cf5c /Tests
parent37bc1488703e22d40dea28706ed8a9e3574a1d77 (diff)
downloadCMake-93246685177fc3d64a6b5dc01904a4437e6c2a9e.zip
CMake-93246685177fc3d64a6b5dc01904a4437e6c2a9e.tar.gz
CMake-93246685177fc3d64a6b5dc01904a4437e6c2a9e.tar.bz2
LinkerId: Fix detection of GNU linker id without parenthesis in version output
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/ParseImplicitLinkInfo/DetermineLinkerId.cmake1
-rwxr-xr-xTests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.bash2
-rw-r--r--Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.txt3
3 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/ParseImplicitLinkInfo/DetermineLinkerId.cmake b/Tests/RunCMake/ParseImplicitLinkInfo/DetermineLinkerId.cmake
index b6caf6c..73e5e1b 100644
--- a/Tests/RunCMake/ParseImplicitLinkInfo/DetermineLinkerId.cmake
+++ b/Tests/RunCMake/ParseImplicitLinkInfo/DetermineLinkerId.cmake
@@ -6,6 +6,7 @@ set(tools
debian12-ld.gold
debian12-ld.lld
debian12-ld.mold
+ fedora39-ld.bfd
fedora39-ld.gold
fedora39-ld.lld
fedora39-ld.mold
diff --git a/Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.bash b/Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.bash
new file mode 100755
index 0000000..c74ea41
--- /dev/null
+++ b/Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.bash
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo 'GNU ld version 2.40-13.fc39'
diff --git a/Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.txt b/Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.txt
new file mode 100644
index 0000000..802becd
--- /dev/null
+++ b/Tests/RunCMake/ParseImplicitLinkInfo/ld-v/fedora39-ld.bfd.txt
@@ -0,0 +1,3 @@
+CMAKE_C_COMPILER_LINKER_ID='GNU'
+CMAKE_C_COMPILER_LINKER_VERSION='2.40'
+CMAKE_C_COMPILER_LINKER_FRONTEND_VARIANT='GNU'