From 5010a212042aecb161e1e7a1c2ef4677b29cbc2f Mon Sep 17 00:00:00 2001 From: Marc Charest Date: Mon, 8 May 2017 09:23:40 -0600 Subject: [PATCH] improved interface to cinch_target_link_libraries You should just be able to provide a list now, which is similar to the way `target_link_libraries` works: cinch_target_link_libraries( target_name lib1 lib2 lib3 ) --- cmake/library.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/library.cmake b/cmake/library.cmake index 12ab124..13100e8 100644 --- a/cmake/library.cmake +++ b/cmake/library.cmake @@ -25,12 +25,12 @@ endfunction(cinch_add_library_target) # Link libraries to a target # -function(cinch_target_link_libraries target libraries) +function(cinch_target_link_libraries target) - string(REPLACE ";" "|" libraries_ "${libraries}") + string(REPLACE ";" "|" libraries_ "${ARGN}") message(STATUS - "Linking target ${target} with libraries ${libraries}") + "Linking target ${target} with libraries ${ARGN}") list(APPEND CINCH_TARGET_LIBRARIES "${target}:${libraries_}") set(CINCH_TARGET_LIBRARIES ${CINCH_TARGET_LIBRARIES} PARENT_SCOPE)