[Cmake-commits] CMake branch, next, updated. v2.8.6-1529-g54b6671
Stephen Kelly
steveire at gmail.com
Fri Oct 7 14:04:25 EDT 2011
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 54b6671ded9ae06bc7c1430befd0b9490f2bc9c5 (commit)
via 8c58e53cb40b37bb309892a9029a19f5be8b2782 (commit)
from fe582ed27a97ca8750b9504b47159fd251d8256c (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=54b6671ded9ae06bc7c1430befd0b9490f2bc9c5
commit 54b6671ded9ae06bc7c1430befd0b9490f2bc9c5
Merge: fe582ed 8c58e53
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Oct 7 14:04:20 2011 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Oct 7 14:04:20 2011 -0400
Merge topic 'cmake-link-interface-libraries' into next
8c58e53 Make some long lines less long.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8c58e53cb40b37bb309892a9029a19f5be8b2782
commit 8c58e53cb40b37bb309892a9029a19f5be8b2782
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Oct 7 20:03:34 2011 +0200
Commit: Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Oct 7 20:03:34 2011 +0200
Make some long lines less long.
diff --git a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
index 0ff1a16..ea49210 100644
--- a/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_link_libraries/CMakeLists.txt
@@ -15,10 +15,14 @@ add_executable(
set (COUNT 0)
-macro(_do_build CLEAR_LINK_INTERFACE_LIBRARIES SPECIFY_LINK_INTERFACE_LIBRARIES)
+macro(_do_build CLEAR_LINK_INTERFACE_LIBRARIES
+ SPECIFY_LINK_INTERFACE_LIBRARIES)
math(EXPR COUNT "${COUNT} + 1" )
- execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}/test${COUNT}")
+ execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory
+ "${CMAKE_CURRENT_SOURCE_DIR}/src"
+ "${CMAKE_CURRENT_BINARY_DIR}/test${COUNT}"
+ )
if (${CLEAR_LINK_INTERFACE_LIBRARIES})
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/test${COUNT}/CMakeLists.txt"
@@ -67,7 +71,8 @@ macro(_do_build CLEAR_LINK_INTERFACE_LIBRARIES SPECIFY_LINK_INTERFACE_LIBRARIES)
"generate_export_header(libB)\n"
"generate_export_header(libC)\n"
- "add_executable(exec \"${CMAKE_CURRENT_BINARY_DIR}/test${COUNT}/main.cpp\")\n"
+ "add_executable(exec \n"
+ "\"${CMAKE_CURRENT_BINARY_DIR}/test${COUNT}/main.cpp\")\n"
)
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/test${COUNT}/CMakeLists.txt"
@@ -156,8 +161,9 @@ all_pass(
libA libB libC
)
-# If we don't set the CMAKE_LINK_INTERFACE_LIBRARIES to empty and we don't explicitly
-# specify the LINK_INTERFACE_LIBRARIES, the executable can use all classes if linked
+# If we don't set the CMAKE_LINK_INTERFACE_LIBRARIES to empty and
+# we don't explicitly specify the LINK_INTERFACE_LIBRARIES, the
+# executable can use all classes if linked
# indirectly to them
expect_pass(False False
classA classB
@@ -165,7 +171,8 @@ expect_pass(False False
libB
)
-# Although libC is linked to libA, libA is not part of the link interface of libC.
+# Although libC is linked to libA, libA is not part of the link interface of
+# libC.
# Because we don't clear the CMAKE_LINK_INTERFACE_LIBRARIES it still works.
expect_pass(False False
classA classC
@@ -173,7 +180,8 @@ expect_pass(False False
libC
)
-# # However, if we do clear it and don't explicitly link the executable to it, it fails,
+# # However, if we do clear it and don't explicitly link the executable to it,
+# # it fails,
# # whether we specify the link_interface_libraries properly or not.
# if (NOT APPLE)
# # Apparently this doesn't work on APPLE either.
@@ -206,8 +214,8 @@ expect_pass(True True
libC libA
)
-# Also, if we clear and specify the link interface, we can use classes defined in
-# that interface without linking to the library directly
+# Also, if we clear and specify the link interface, we can use classes defined
+# in that interface without linking to the library directly
expect_pass(True True
classA classB
LIBS
-----------------------------------------------------------------------
Summary of changes:
.../target_link_libraries/CMakeLists.txt | 26 +++++++++++++-------
1 files changed, 17 insertions(+), 9 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list