Skip to content

Commit

Permalink
some build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Sep 6, 2019
1 parent 138e8f4 commit f1ead77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ else()
endif()

find_package(Iconv REQUIRED)
if(NOT Iconv_IS_BUILT_IN)
set(ICONV_LIB Iconv::Iconv)
endif()

find_package(LibLZMA)
if(NOT LIBLZMA_FOUND)
Expand Down
10 changes: 7 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ target_link_libraries(salmon
${LIBRT}
ksw2pp
## PUFF_INTEGRATION
Iconv::Iconv
alevin_core
${CMAKE_DL_LIBS}
#asan
Expand All @@ -265,23 +264,28 @@ target_link_libraries(unitTests
alevin_core
salmon_core
gff
${STADEN_LIBRARIES}
${Boost_LIBRARIES}
${ICU_LIBS}
${STADEN_LIBRARIES} ${CURL_LIBRARIES}
${CURL_LIBRARIES}
${ZLIB_LIBRARY}
m
${LIBLZMA_LIBRARIES}
${BZIP2_LIBRARIES}
${TBB_LIBRARIES}
${LIBSALMON_LINKER_FLAGS}
${NON_APPLECLANG_LIBS}
Iconv::Iconv
${LIBRT}
${CMAKE_DL_LIBS}
#asan
#ubsan
)

if(NOT Iconv_IS_BUILT_IN)
target_link_libraries(unitTests Iconv::Iconv)
target_link_libraries(salmon Iconv::Iconv)
endif()

add_dependencies(salmon unitTests)

##
Expand Down

0 comments on commit f1ead77

Please sign in to comment.