[Cmake-commits] CMake branch, next, updated. v3.0.0-rc6-3460-g38425fd

Brad King brad.king at kitware.com
Mon Jun 2 10:37:55 EDT 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  38425fd0e8b8e8057b91fb0eb1e581afad4b1e1c (commit)
       via  6fbd9a8f3d98630746aa2ac6f38c80b7b9306381 (commit)
      from  0c5cd2790876749c4960a6cfb3aadf0d745fa489 (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=38425fd0e8b8e8057b91fb0eb1e581afad4b1e1c
commit 38425fd0e8b8e8057b91fb0eb1e581afad4b1e1c
Merge: 0c5cd27 6fbd9a8
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Jun 2 10:37:55 2014 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Jun 2 10:37:55 2014 -0400

    Merge topic 'backport-doc-include-dirs-example' into next
    
    6fbd9a8f Help: Add code example for INSTALL_INTERFACE to cmake-buildsystem.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6fbd9a8f3d98630746aa2ac6f38c80b7b9306381
commit 6fbd9a8f3d98630746aa2ac6f38c80b7b9306381
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Thu Apr 17 11:01:58 2014 +0200
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Mon Jun 2 10:28:23 2014 -0400

    Help: Add code example for INSTALL_INTERFACE to cmake-buildsystem.

diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index 501b924..3e1f011 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -580,7 +580,17 @@ and the install-tree.  The ``BUILD_INTERFACE`` and ``INSTALL_INTERFACE``
 generator expressions can be used to describe separate usage requirements
 based on the usage location.  Relative paths are allowed within these
 expressions, and are interpreted relative to the current source directory
-or the installation prefix, as appropriate.
+or the installation prefix, as appropriate:
+
+.. code-block:: cmake
+
+  add_library(ClimbingStats climbingstats.cpp)
+  target_include_directories(ClimbingStats INTERFACE
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/generated>
+    $<INSTALL_INTERFACE:/absolute/path>
+    $<INSTALL_INTERFACE:relative/path>
+    $<INSTALL_INTERFACE:$<INSTALL_PREFIX>/$<CONFIG>/generated>
+  )
 
 Two convenience APIs are provided relating to include directories usage
 requirements.  The :variable:`CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE` variable

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

Summary of changes:


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list