[Cmake-commits] CMake branch, next, updated. v3.3.0-rc4-1107-g82a5781

Brad King brad.king at kitware.com
Fri Jul 17 12:59:24 EDT 2015


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  82a57813903cf10d81627768c81f30fb645d83f0 (commit)
       via  0fcbd704f8da5ef3ddbe9964c9affb14fc16d640 (commit)
      from  39424c7e55ef26e2e3f6a98203b6b8fb41c7164c (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=82a57813903cf10d81627768c81f30fb645d83f0
commit 82a57813903cf10d81627768c81f30fb645d83f0
Merge: 39424c7 0fcbd70
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Jul 17 12:59:23 2015 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Jul 17 12:59:23 2015 -0400

    Merge topic 'doc-CMakeExpandImportedTargets-deprecated' into next
    
    0fcbd704 CMakeExpandImportedTargets: Document as deprecated


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0fcbd704f8da5ef3ddbe9964c9affb14fc16d640
commit 0fcbd704f8da5ef3ddbe9964c9affb14fc16d640
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Jul 17 11:10:02 2015 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Fri Jul 17 11:10:02 2015 -0400

    CMakeExpandImportedTargets: Document as deprecated
    
    The module is not needed anymore for try_compile or try_run.  It cannot
    be used with CMP0022 NEW behavior due to generator expressions in
    INTERFACE_LINK_LIBRARIES, so document it as deprecated.  Whatever
    problems other than try_compile and try_run anyone tried to solve with
    this module will have to be addressed another way.

diff --git a/Modules/CMakeExpandImportedTargets.cmake b/Modules/CMakeExpandImportedTargets.cmake
index 8ac3364..28f2e46 100644
--- a/Modules/CMakeExpandImportedTargets.cmake
+++ b/Modules/CMakeExpandImportedTargets.cmake
@@ -2,6 +2,19 @@
 # CMakeExpandImportedTargets
 # --------------------------
 #
+# Deprecated.  Do not use.
+#
+# This module was once needed to expand imported targets to the underlying
+# libraries they reference on disk for use with the :command:`try_compile`
+# and :command:`try_run` commands.  These commands now support imported
+# libraries in their ``LINK_LIBRARIES`` options (since CMake 2.8.11
+# for :command:`try_compile` and since CMake 3.2 for :command:`try_run`).
+#
+# This module does not support the policy :policy:`CMP0022` ``NEW``
+# behavior or use of the :prop_tgt:`INTERFACE_LINK_LIBRARIES` property
+# because :manual:`generator expressions <cmake-generator-expressions(7)>`
+# cannot be evaluated during configuration.
+#
 # ::
 #
 #  CMAKE_EXPAND_IMPORTED_TARGETS(<var> LIBRARIES lib1 lib2...libN
@@ -14,9 +27,6 @@
 # respective configuration of the imported targets if it exists.  If no
 # CONFIGURATION is given, it uses the first configuration from
 # ${CMAKE_CONFIGURATION_TYPES} if set, otherwise ${CMAKE_BUILD_TYPE}.
-# 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:
 #
 # ::
 #

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

Summary of changes:
 Modules/CMakeExpandImportedTargets.cmake |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list