From 8bd81981ad2759f2957b464890d3a78ff0675b02 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 10 Oct 2014 10:48:05 -0400 Subject: Help: Add note about restoring pre-3.0 link libraries genex behavior --- 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 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 ` + containing a (``;`` separated) list within them. For example:: + + set(libs B C) + target_link_libraries(A PUBLIC $) + + This is equivalent to writing:: + + target_link_libraries(A PUBLIC $) + + 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 "$") + + CMake 3.1 again requires the quotes for this to work correctly. -- cgit v0.12