Skip to content

Commit

Permalink
CMakeLists.txt: REMOVE_ITEM removes by value, not by index
Browse files Browse the repository at this point in the history
…Oooops.
  • Loading branch information
shdown committed Jan 17, 2017
1 parent 5c6fa12 commit ef97666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ set (PLUGINS_DIR "${CMAKE_INSTALL_PREFIX}/lib/luastatus/plugins")

function (luastatus_add_barlib_or_plugin destdir name)
set (sources ${ARGV})
list (REMOVE_ITEM sources 0 1)
list (REMOVE_AT sources 0 1)
add_library ("${name}" MODULE ${sources})
set_target_properties ("${name}" PROPERTIES PREFIX "")
install (TARGETS "${name}" DESTINATION "${destdir}")
Expand Down

0 comments on commit ef97666

Please sign in to comment.