summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-27 13:29:35 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-27 14:46:33 (GMT)
commit995f5b4e7b81e6672eaafba2c6d9a145e3aefe5d (patch)
tree65019d7df2e83eb212d86891ff438193df77dfe6 /Modules/CMakeFindBinUtils.cmake
parentcf82300a63d476f897c2cf6176378dc870be4282 (diff)
downloadCMake-995f5b4e7b81e6672eaafba2c6d9a145e3aefe5d.zip
CMake-995f5b4e7b81e6672eaafba2c6d9a145e3aefe5d.tar.gz
CMake-995f5b4e7b81e6672eaafba2c6d9a145e3aefe5d.tar.bz2
BinUtils: Find linker and librarian for OpenWatcom
Update our OpenWatcom linker and archiver rules to use the `<CMAKE_LINKER>` and `<CMAKE_AR>` placeholders instead of hard-coding the tool names.
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r--Modules/CMakeFindBinUtils.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index bfa9491..de516fc 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -86,6 +86,11 @@ if(("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC" AND
list(APPEND _CMAKE_TOOL_VARS LINKER MT AR)
+elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^x(Open)?Watcom$")
+ set(_CMAKE_LINKER_NAMES "wlink")
+ set(_CMAKE_AR_NAMES "wlib")
+ list(APPEND _CMAKE_TOOL_VARS LINKER AR)
+
# in all other cases search for ar, ranlib, etc.
else()
if(CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN)