[Cmake-commits] CMake branch, next, updated. v2.8.7-2655-gc3c9b50

Alexander Neundorf neundorf at kde.org
Thu Feb 16 15:25:30 EST 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  c3c9b50240cc6a57897a6c3593282545e82cf85e (commit)
       via  df3505f510dc3469bb3af3cc40cac54159dfc7d6 (commit)
      from  29fe3cbd7d5cb34465203abd4e27dcbe12103bd2 (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=c3c9b50240cc6a57897a6c3593282545e82cf85e
commit c3c9b50240cc6a57897a6c3593282545e82cf85e
Merge: 29fe3cb df3505f
Author:     Alexander Neundorf <neundorf at kde.org>
AuthorDate: Thu Feb 16 15:25:23 2012 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Feb 16 15:25:23 2012 -0500

    Merge topic 'HandleTargetsInCMakeRequiredLibraries' into next
    
    df3505f cmake_expand_imported_targets(): add documentation


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=df3505f510dc3469bb3af3cc40cac54159dfc7d6
commit df3505f510dc3469bb3af3cc40cac54159dfc7d6
Author:     Alex Neundorf <neundorf at kde.org>
AuthorDate: Thu Feb 16 21:23:18 2012 +0100
Commit:     Alex Neundorf <neundorf at kde.org>
CommitDate: Thu Feb 16 21:23:18 2012 +0100

    cmake_expand_imported_targets(): add documentation
    
    Alex

diff --git a/Modules/CMakeExpandImportedTargets.cmake b/Modules/CMakeExpandImportedTargets.cmake
index bb5b845..88dedeb 100644
--- a/Modules/CMakeExpandImportedTargets.cmake
+++ b/Modules/CMakeExpandImportedTargets.cmake
@@ -1,13 +1,14 @@
+# CMAKE_EXPAND_IMPORTED_TARGETS(<var> LIBRARIES lib1 lib2...libN)
+#
+# CMAKE_EXPAND_IMPORTED_TARGETS() takes a list of libraries and replaces
+# all imported targets contained in this list with their actual file paths
+# of the referenced libraries on disk, including the libraries from their
+# link interfaces.
+# This macro is used by all Check*.cmake files which use
+# TRY_COMPILE() or TRY_RUN() and support CMAKE_REQUIRED_LIBRARIES , so that
+# these checks support imported targets in CMAKE_REQUIRED_LIBRARIES:
+#    cmake_expand_imported_targets(expandedLibs LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} )
 
-# This is a helper function used by all Check*.cmake files which use
-# TRY_COMPILE() or TRY_RUN() and support CMAKE_REQUIRED_LIBRARIES .
-# It takes the CMAKE_REQUIRED_LIBRARY variable and searches it for imported
-# (library) targets. Since the project created by TRY_COMPILE() (and TRY_RUN())
-# does not know about these imported targets, this macro here replaces these
-# imported targets with the actual library files on disk and it also
-# adds the libraries from the link interface of these imported targets.
-# E.g the imported target KDE4__kdeui is replaced on my system with /opt/kdelibs/lib/libkdeui.so
-# and the link interface libraries, which includes e.g. /opt/kdelibs/lib/libkdecore.so.
 
 #=============================================================================
 # Copyright 2012 Kitware, Inc.

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

Summary of changes:
 Modules/CMakeExpandImportedTargets.cmake |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list