aboutsummaryrefslogtreecommitdiff
path: root/project/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake')
-rw-r--r--project/cmake/scripts/common/AddonHelpers.cmake4
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