Skip to content

Commit

Permalink
proper target links
Browse files Browse the repository at this point in the history
  • Loading branch information
gonsie committed Jun 21, 2018
1 parent b1c886d commit 64bd0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ LIST(APPEND libshuffile_srcs
ADD_LIBRARY(shuffile_o OBJECT ${libshuffile_srcs})

ADD_LIBRARY(shuffile SHARED $<TARGET_OBJECTS:shuffile_o>)
TARGET_LINK_LIBRARIES(shuffile ${KVTREE_EXTERNAL_LIBS})
TARGET_LINK_LIBRARIES(shuffile ${SHUFFILE_EXTERNAL_LIBS})
SET_TARGET_PROPERTIES(shuffile PROPERTIES OUTPUT_NAME shuffile CLEAN_DIRECT_OUTPUT 1)
INSTALL(TARGETS shuffile DESTINATION ${CMAKE_INSTALL_LIBDIR})

Expand All @@ -30,7 +30,7 @@ IF(KVTREE_LINK_STATIC)
SET_TARGET_PROPERTIES(shuffile-static PROPERTIES LINK_SEARCH_START_STATIC 1)
SET_TARGET_PROPERTIES(shuffile-static PROPERTIES LINK_SEARCH_END_STATIC 1)
ENDIF(KVTREE_LINK_STATIC)
TARGET_LINK_LIBRARIES(shuffile-static ${KVTREE_EXTERNAL_LIBS})
TARGET_LINK_LIBRARIES(shuffile-static ${SHUFFILE_EXTERNAL_LIBS})

SET_TARGET_PROPERTIES(shuffile-static PROPERTIES OUTPUT_NAME shuffile CLEAN_DIRECT_OUTPUT 1)
INSTALL(TARGETS shuffile-static DESTINATION ${CMAKE_INSTALL_LIBDIR})

0 comments on commit 64bd0bf

Please sign in to comment.