[Cmake-commits] CMake branch, next, updated. v2.8.8-3592-gae3343b

Rolf Eike Beer eike at sf-mail.de
Sun Jul 29 11:43:20 EDT 2012


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  ae3343b3a8d9cd4988a7e17e5cb043a9fe52a927 (commit)
       via  91ee07a867fccca2f0f3b415c13c8ed6bc5dc84a (commit)
      from  bce6d8d5f721f0c823dc1600de6b2697e89c4ea2 (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=ae3343b3a8d9cd4988a7e17e5cb043a9fe52a927
commit ae3343b3a8d9cd4988a7e17e5cb043a9fe52a927
Merge: bce6d8d 91ee07a
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Sun Jul 29 11:43:17 2012 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sun Jul 29 11:43:17 2012 -0400

    Merge topic 'SelectLibraryConfiguration-multi-lib-per-var2' into next
    
    91ee07a SelectLibraryConfiguration: generate correct output when input vars are lists


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=91ee07a867fccca2f0f3b415c13c8ed6bc5dc84a
commit 91ee07a867fccca2f0f3b415c13c8ed6bc5dc84a
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Sat Jul 28 10:25:17 2012 +0200
Commit:     Rolf Eike Beer <eike at sf-mail.de>
CommitDate: Sun Jul 29 17:43:01 2012 +0200

    SelectLibraryConfiguration: generate correct output when input vars are lists
    
    In case that any of the input variables that hold the library names contains
    more than just a single library the "debug" or "optimized" keywords were only
    prepended to the first item, making all other libs appear in all
    configurations. Just treat both input variables as lists.
    
    Thanks to Philipp Berger <newsletters at philippberger.de> for pointing me at
    this.

diff --git a/Modules/SelectLibraryConfigurations.cmake b/Modules/SelectLibraryConfigurations.cmake
index 2e8ade0..e05dc8e 100644
--- a/Modules/SelectLibraryConfigurations.cmake
+++ b/Modules/SelectLibraryConfigurations.cmake
@@ -48,17 +48,19 @@ macro( select_library_configurations basename )
     # if only the debug version was found, set the release value to be the
     # debug value.
     _set_library_name( ${basename} DEBUG RELEASE )
-    if (${basename}_LIBRARY_DEBUG AND ${basename}_LIBRARY_RELEASE AND
-           NOT ${basename}_LIBRARY_DEBUG STREQUAL ${basename}_LIBRARY_RELEASE)
+    if( ${basename}_LIBRARY_DEBUG AND ${basename}_LIBRARY_RELEASE AND
+           NOT ${basename}_LIBRARY_DEBUG STREQUAL ${basename}_LIBRARY_RELEASE )
         # if the generator supports configuration types or CMAKE_BUILD_TYPE
         # is set, then set optimized and debug options.
         if( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
-            set( ${basename}_LIBRARY 
-                optimized ${${basename}_LIBRARY_RELEASE}
-                debug ${${basename}_LIBRARY_DEBUG} )
-            set( ${basename}_LIBRARIES 
-                optimized ${${basename}_LIBRARY_RELEASE}
-                debug ${${basename}_LIBRARY_DEBUG} )
+            set( ${basename}_LIBRARY )
+            foreach( _libname LISTS ${basename}_LIBRARY_RELEASE )
+                list( APPEND ${basename}_LIBRARY optimized "${_libname}" )
+            endforach()
+            foreach( _libname LISTS ${basename}_LIBRARY_DEBUG )
+                list( APPEND ${basename}_LIBRARY debug "${_libname}" )
+            endforach()
+            set( ${basename}_LIBRARIES "${${basename}_LIBRARY}" )
         else( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE )
             # If there are no configuration types or build type, just use
             # the release version

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

Summary of changes:


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list