diff options
author | h.udo <hudokkow@gmail.com> | 2016-10-13 22:07:58 +0100 |
---|---|---|
committer | h.udo <hudokkow@gmail.com> | 2016-10-14 12:41:24 +0100 |
commit | ec1f12d2667baccb014c62f4ce05f9b53dddd467 (patch) | |
tree | 535ab1c4ce4e4c23881fcaed07df1a1548a5688a /project/cmake | |
parent | 201e58b0b1271ccf339f0a491dad1151cac0509f (diff) |
[cmake] Fix build_addon() macro
Diffstat (limited to 'project/cmake')
-rw-r--r-- | project/cmake/scripts/common/AddonHelpers.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
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 |