[Cmake-commits] CMake branch, next, updated. v3.0.2-5715-g3178d66
Brad King
brad.king at kitware.com
Fri Oct 10 10:48:41 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 3178d66b5958b24187230a67a85efdbbbba360e8 (commit)
via 8bd81981ad2759f2957b464890d3a78ff0675b02 (commit)
from 48632abfb348e0f070f92d1a6ffdd2ab1c32a473 (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=3178d66b5958b24187230a67a85efdbbbba360e8
commit 3178d66b5958b24187230a67a85efdbbbba360e8
Merge: 48632ab 8bd8198
Author: Brad King <brad.king at kitware.com>
AuthorDate: Fri Oct 10 10:48:40 2014 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Oct 10 10:48:40 2014 -0400
Merge topic 'note-link-libraries-genex' into next
8bd81981 Help: Add note about restoring pre-3.0 link libraries genex behavior
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8bd81981ad2759f2957b464890d3a78ff0675b02
commit 8bd81981ad2759f2957b464890d3a78ff0675b02
Author: Brad King <brad.king at kitware.com>
AuthorDate: Fri Oct 10 10:48:05 2014 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Fri Oct 10 10:48:05 2014 -0400
Help: Add note about restoring pre-3.0 link libraries genex behavior
diff --git a/Help/release/dev/note-link-libraries-genex.rst b/Help/release/dev/note-link-libraries-genex.rst
new file mode 100644
index 0000000..acb60eb
--- /dev/null
+++ b/Help/release/dev/note-link-libraries-genex.rst
@@ -0,0 +1,22 @@
+note-link-libraries-genex
+-------------------------
+
+* In CMake 3.0 the :command:`target_link_libraries` command
+ accidentally began allowing unquoted arguments to use
+ :manual:`generator expressions <cmake-generator-expressions(7)>`
+ containing a (``;`` separated) list within them. For example::
+
+ set(libs B C)
+ target_link_libraries(A PUBLIC $<BUILD_INTERFACE:${libs}>)
+
+ This is equivalent to writing::
+
+ target_link_libraries(A PUBLIC $<BUILD_INTERFACE:B C>)
+
+ and was never intended to work. It did not work in CMake 2.8.12.
+ Such generator expressions should be in quoted arguments::
+
+ set(libs B C)
+ target_link_libraries(A PUBLIC "$<BUILD_INTERFACE:${libs}>")
+
+ CMake 3.1 again requires the quotes for this to work correctly.
-----------------------------------------------------------------------
Summary of changes:
Help/release/dev/note-link-libraries-genex.rst | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 Help/release/dev/note-link-libraries-genex.rst
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list