[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-367-g6ea3158

Kitware Robot kwrobot at kitware.com
Mon Mar 6 13:25:01 EST 2017


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  6ea3158a2c65d627d32d280a90b086710290d32c (commit)
       via  957bdb9e6e4d8e0855f3a9d98cbc6a196bb07293 (commit)
      from  1b28b4e3dc7e74579ba3e41801a55e8da42eba3a (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 -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6ea3158a2c65d627d32d280a90b086710290d32c
commit 6ea3158a2c65d627d32d280a90b086710290d32c
Merge: 1b28b4e 957bdb9
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Mar 6 18:21:26 2017 +0000
Commit:     Kitware Robot <kwrobot at kitware.com>
CommitDate: Mon Mar 6 13:21:52 2017 -0500

    Stage topic 'pr.map.config'
    
    Topic-id: 22852
    Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/545


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=957bdb9e6e4d8e0855f3a9d98cbc6a196bb07293
commit 957bdb9e6e4d8e0855f3a9d98cbc6a196bb07293
Author:     Ruslan Baratov <ruslan_baratov at yahoo.com>
AuthorDate: Fri Mar 3 18:01:57 2017 +0800
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Mon Mar 6 13:14:34 2017 -0500

    Help: Add example to MAP_IMPORTED_CONFIG_<CONFIG> docs

diff --git a/Help/prop_tgt/MAP_IMPORTED_CONFIG_CONFIG.rst b/Help/prop_tgt/MAP_IMPORTED_CONFIG_CONFIG.rst
index 4da855b..266ccf0 100644
--- a/Help/prop_tgt/MAP_IMPORTED_CONFIG_CONFIG.rst
+++ b/Help/prop_tgt/MAP_IMPORTED_CONFIG_CONFIG.rst
@@ -23,3 +23,48 @@ is ignored for non-imported targets.
 This property is initialized by the value of the
 :variable:`CMAKE_MAP_IMPORTED_CONFIG_<CONFIG>` variable if it is set when a
 target is created.
+
+Example
+^^^^^^^
+
+For example creating imported C++ library ``foo``:
+
+.. code-block:: cmake
+
+  add_library(foo STATIC IMPORTED)
+
+Use ``foo_debug`` path for ``Debug`` build type:
+
+.. code-block:: cmake
+
+  set_property(
+    TARGET foo APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG
+    )
+
+  set_target_properties(foo PROPERTIES
+    IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
+    IMPORTED_LOCATION_DEBUG "${foo_debug}"
+    )
+
+Use ``foo_release`` path for ``Release`` build type:
+
+.. code-block:: cmake
+
+  set_property(
+    TARGET foo APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE
+    )
+
+  set_target_properties(foo PROPERTIES
+    IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
+    IMPORTED_LOCATION_RELEASE "${foo_release}"
+    )
+
+Use ``Release`` version of library for ``MinSizeRel`` and ``RelWithDebInfo``
+build types:
+
+.. code-block:: cmake
+
+  set_target_properties(foo PROPERTIES
+    MAP_IMPORTED_CONFIG_MINSIZEREL Release
+    MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
+    )

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

Summary of changes:
 Help/prop_tgt/MAP_IMPORTED_CONFIG_CONFIG.rst |   45 ++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list