summaryrefslogtreecommitdiffstats
path: root/Modules/InstallRequiredSystemLibraries.cmake
diff options
context:
space:
mode:
authorJiri Malak <malak.jiri@gmail.com>2014-03-17 18:41:02 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-17 19:00:59 (GMT)
commit5d9aa66c91909b8d7eab16edb020c9a14205ba69 (patch)
tree0a0b30b2db44f47943add15d36eb1ff9a2c5e803 /Modules/InstallRequiredSystemLibraries.cmake
parent9292d3b8a016fb48f5b5b1518895b6d63e51bc2e (diff)
downloadCMake-5d9aa66c91909b8d7eab16edb020c9a14205ba69.zip
CMake-5d9aa66c91909b8d7eab16edb020c9a14205ba69.tar.gz
CMake-5d9aa66c91909b8d7eab16edb020c9a14205ba69.tar.bz2
Watcom: Introduce OpenWatcom compiler id and fix compiler version
Distinguish "Open Watcom" from old "Watcom" by introducing a new "OpenWatcom" compiler id. The __WATCOMC__ format is "VVRP" for Watcom and "VVRP + 1100" for Open Watcom.
Diffstat (limited to 'Modules/InstallRequiredSystemLibraries.cmake')
-rw-r--r--Modules/InstallRequiredSystemLibraries.cmake4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake
index 7e68e8f..4b551e6 100644
--- a/Modules/InstallRequiredSystemLibraries.cmake
+++ b/Modules/InstallRequiredSystemLibraries.cmake
@@ -374,10 +374,6 @@ if(WATCOM)
string(REGEX MATCHALL "[0-9]+" _watcom_version_list "${_compiler_version}")
list(GET _watcom_version_list 0 _watcom_major)
list(GET _watcom_version_list 1 _watcom_minor)
- if(${_watcom_major} GREATER 11)
- math(EXPR _watcom_major "${_watcom_major} - 11")
- endif()
- math(EXPR _watcom_minor "${_watcom_minor} / 10")
set( __install__libs
${CompilerPath}/clbr${_watcom_major}${_watcom_minor}.dll
${CompilerPath}/mt7r${_watcom_major}${_watcom_minor}.dll