From ec1f12d2667baccb014c62f4ce05f9b53dddd467 Mon Sep 17 00:00:00 2001 From: "h.udo" Date: Thu, 13 Oct 2016 22:07:58 +0100 Subject: [cmake] Fix build_addon() macro --- project/cmake/scripts/common/AddonHelpers.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'project/cmake') diff --git a/project/cmake/scripts/common/AddonHelpers.cmake b/project/cmake/scripts/common/AddonHelpers.cmake index bf40799e3a..f2f1edf17c 100644 --- a/project/cmake/scripts/common/AddonHelpers.cmake +++ b/project/cmake/scripts/common/AddonHelpers.cmake @@ -37,7 +37,7 @@ macro (build_addon target prefix libs) addon_version(${target} ${prefix}) if(${prefix}_SOURCES) add_library(${target} ${${prefix}_SOURCES}) - TARGET_link_libraries(${target} ${${libs}}) + target_link_libraries(${target} ${${libs}}) set_target_properties(${target} PROPERTIES VERSION ${${prefix}_VERSION} SOVERSION ${APP_VERSION_MAJOR}.${APP_VERSION_MINOR} PREFIX "") @@ -46,8 +46,6 @@ macro (build_addon target prefix libs) endif() elseif(${prefix}_CUSTOM_BINARY) add_custom_target(${target} ALL) - list(GET ${prefix}_CUSTOM_BINARY 2 dependency) - add_dependencies(${target} ${dependency}) endif() # get the library's location -- cgit v1.2.3