Skip to content

Commit dc57641

Browse files
authored
Merge pull request #225 from sarahet/fasta_formats
Fix zlib support for static macos build
2 parents a3713b7 + cf4ee1f commit dc57641

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ option (LAMBDA_WITH_BIFM "Include codepaths for bidirectional indexes." OFF)
3434

3535
if (LAMBDA_STATIC_BUILD)
3636
add_definitions (-DLAMBDA_STATIC_BUILD=1)
37-
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
3837
# apple does not support fully static builds, but at least libgcc and libstdc++
3938
if (APPLE)
4039
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
4140
message (WARNING "WARNING: Builds on Mac are never fully static.")
4241
else (APPLE)
42+
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
4343
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
4444
endif (APPLE)
4545
# on linux cmake adds -rdynamic automatically which clang can't handle in static builds
@@ -65,7 +65,6 @@ message(STATUS "Remove CMakeCache.txt and re-run cmake with -DOPTIONNAME=ON|OFF
6565
# Search SeqAn and select dependencies.
6666
find_package(OpenMP QUIET)
6767
find_package(ZLIB QUIET)
68-
find_package(BZip2 QUIET)
6968
find_package(SeqAn QUIET REQUIRED CONFIG)
7069

7170
# BIO
@@ -85,7 +84,6 @@ add_subdirectory(../submodules/fmindex-collection fmindex-collection)
8584
message(STATUS "These dependencies were found:")
8685
message( " BIOCPP-CORE ${BIOCPP_CORE_FOUND} ${BIOCPP_CORE_VERSION}")
8786
message( " BIOCPP-IO ${BIOCPP_IO_FOUND} ${BIOCPP_IO_VERSION}")
88-
message( " BZIP2 ${BZIP2_FOUND} ${BZIP2_VERSION_STRING}")
8987
message( " CEREAL ${CEREAL_FOUND} ${CEREAL_VERSION}")
9088
message( " OPENMP ${OPENMP_FOUND} ${OpenMP_CXX_FLAGS}")
9189
message( " SEQAN ${SEQAN_FOUND} ${SEQAN_VERSION_STRING}")

0 commit comments

Comments
 (0)