Skip to content

Commit

Permalink
fix: use OUTPUT_NAME for target (ElektraInitiative#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmakar committed May 9, 2023
1 parent 1fb78de commit 866e91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cmake/Modules/LibAddPlugin.cmake
Expand Up @@ -637,8 +637,8 @@ function (add_plugin PLUGIN_SHORT_NAME)

if (BUILD_SHARED)
add_library (${PLUGIN_NAME} MODULE ${ARG_SOURCES} ${ARG_OBJECT_SOURCES})
set_target_properties (${PLUGIN_NAME} PROPERTIES PREFIX "libelektra")
set_target_properties(${PLUGIN_NAME} PROPERTIES OUTPUT_NAME "-plugin-${PLUGIN_NAME}")
# switch to -plugin- in CMake targets
set_target_properties(${PLUGIN_NAME} PROPERTIES OUTPUT_NAME "elektra-plugin-${PLUGIN_NAME}")

if (ARG_DEPENDS)
add_dependencies (${PLUGIN_NAME} ${ARG_DEPENDS})
Expand Down

0 comments on commit 866e91f

Please sign in to comment.