summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-13 15:42:14 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-03 22:07:52 (GMT)
commitba5f8dbba365ff29898a0809e2e7950ffe4e164c (patch)
tree9628f8ebe2625165a71cb3802c240c4d542580de /Modules/Internal
parent6cbd0658c56550a97acb21d4004ad3980f486eb0 (diff)
downloadCMake-ba5f8dbba365ff29898a0809e2e7950ffe4e164c.zip
CMake-ba5f8dbba365ff29898a0809e2e7950ffe4e164c.tar.gz
CMake-ba5f8dbba365ff29898a0809e2e7950ffe4e164c.tar.bz2
LinkerId: Use empty string for unknown linker id
Since commit c26c6ac488 (Link Step: compute effective linker used by the compiler, 2023-05-27) we used `UNKNOWN` if the linker id is not known. This convention is not used elsewhere, and logic using the linker id is easier when `if(CMAKE_C_COMPILER_LINKER_ID)` is false on unknown id.
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/CMakeDetermineLinkerId.cmake4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/Internal/CMakeDetermineLinkerId.cmake b/Modules/Internal/CMakeDetermineLinkerId.cmake
index 7f0b516..e0a57eb 100644
--- a/Modules/Internal/CMakeDetermineLinkerId.cmake
+++ b/Modules/Internal/CMakeDetermineLinkerId.cmake
@@ -83,10 +83,6 @@ function(cmake_determine_linker_id lang linker)
break()
endif()
endforeach()
- if(NOT linker_id)
- # unknown linker
- set(linker_id "UNKNOWN")
- endif()
set(CMAKE_${lang}_COMPILER_LINKER_ID "${linker_id}" PARENT_SCOPE)
if (linker_frontend)