[Cmake-commits] CMake branch, next, updated. v3.0.0-rc1-486-g5c4a029

Brad King brad.king at kitware.com
Tue Mar 4 12:35:38 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  5c4a0297d894b5398baed893674780de22acfae2 (commit)
       via  ee01b7ee6d768a9253e7f12f3035a6d40f4f9d44 (commit)
      from  72d97b7ef358caec678fb44bd632d3428129936e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5c4a0297d894b5398baed893674780de22acfae2
commit 5c4a0297d894b5398baed893674780de22acfae2
Merge: 72d97b7 ee01b7e
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Mar 4 12:35:37 2014 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Mar 4 12:35:37 2014 -0500

    Merge topic 'watcom-rtdll-version' into next
    
    ee01b7ee Remove hard-coded version of RTDLL for Open Watcom


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ee01b7ee6d768a9253e7f12f3035a6d40f4f9d44
commit ee01b7ee6d768a9253e7f12f3035a6d40f4f9d44
Author:     Jiri Malak <malak.jiri at gmail.com>
AuthorDate: Mon Mar 3 21:36:09 2014 +0100
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Tue Mar 4 12:35:20 2014 -0500

    Remove hard-coded version of RTDLL for Open Watcom
    
    In InstallRequiredSystemLibraries the version number for RTDLL can be
    calculated from the compiler version.  This will support current and
    future OW versions without updating the module again.

diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake
index 013a028..b29896f 100644
--- a/Modules/InstallRequiredSystemLibraries.cmake
+++ b/Modules/InstallRequiredSystemLibraries.cmake
@@ -366,18 +366,22 @@ endif()
 
 if(WATCOM)
   get_filename_component( CompilerPath ${CMAKE_C_COMPILER} PATH )
-  if(WATCOM17)
-     set( __install__libs ${CompilerPath}/clbr17.dll
-       ${CompilerPath}/mt7r17.dll ${CompilerPath}/plbr17.dll )
-  endif()
-  if(WATCOM18)
-     set( __install__libs ${CompilerPath}/clbr18.dll
-       ${CompilerPath}/mt7r18.dll ${CompilerPath}/plbr18.dll )
+  if(CMAKE_C_COMPILER_VERSION)
+    set(_compiler_version ${CMAKE_C_COMPILER_VERSION})
+  else()
+    set(_compiler_version ${CMAKE_CXX_COMPILER_VERSION})
   endif()
-  if(WATCOM19)
-     set( __install__libs ${CompilerPath}/clbr19.dll
-       ${CompilerPath}/mt7r19.dll ${CompilerPath}/plbr19.dll )
+  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} > 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
+    ${CompilerPath}/plbr${_watcom_major}${_watcom_minor}.dll )
   foreach(lib
       ${__install__libs}
       )

-----------------------------------------------------------------------

Summary of changes:
 Modules/InstallRequiredSystemLibraries.cmake |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list