Skip to content

Commit

Permalink
build: don't depend on the LINK_LIBRARIES target property for plugins
Browse files Browse the repository at this point in the history
Without this using system libraries instead of the bundled code will
fail on older CMake versions (such as 2.8.7, which is used on Ubuntu
12.04).
  • Loading branch information
nemequ committed Jun 13, 2016
1 parent 4b21a27 commit 3d604eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/SquashPlugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function (SQUASH_PLUGIN)
set_property (TARGET ${PLUGIN_TARGET} APPEND_STRING PROPERTY LINK_FLAGS " ${ldflag}")
endforeach ()
else ()
set_property (TARGET ${PLUGIN_TARGET} APPEND PROPERTY LINK_LIBRARIES ${${SQUASH_PLUGIN_EXTERNAL_PKG_PREFIX}_LIBRARIES})
target_link_libraries (${PLUGIN_TARGET} ${${SQUASH_PLUGIN_EXTERNAL_PKG_PREFIX}_LIBRARIES})
endif ()

if (NOT "${${SQUASH_PLUGIN_EXTERNAL_PKG_PREFIX}_CFLAGS}" STREQUAL "")
Expand Down

0 comments on commit 3d604eb

Please sign in to comment.