Skip to content

Commit

Permalink
Fail-fast if libdeflate isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Nov 10, 2020
1 parent 4ad2c29 commit 46e1bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENDIF(NOT CMAKE_BUILD_TYPE)
ExternalProject_Add(htslib
URL https://github.com/samtools/htslib/releases/download/1.10.2/htslib-1.10.2.tar.bz2
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external
CONFIGURE_COMMAND bash -c "autoreconf && ./configure --disable-libcurl --disable-bz2 --disable-lzma --disable-s3 --disable-gcs"
CONFIGURE_COMMAND bash -c "autoreconf && ./configure --with-libdeflate --disable-libcurl --disable-bz2 --disable-lzma --disable-s3 --disable-gcs"
PATCH_COMMAND sed -i "s/^CFLAGS .*$/CFLAGS = -O3 -DNDEBUG -march=ivybridge/" Makefile
BUILD_IN_SOURCE 1
BUILD_COMMAND bash -c "make -n && make -j$(nproc)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Further resources:

This repository has a command-line utility for encoding pVCF to spVCF and vice versa. The [Releases](https://github.com/mlin/spVCF/releases) page has pre-built executables compatible with most Linux x86-64 hosts, which you can download and `chmod +x spvcf`.

To instead build and test it yourself, clone this repository and:
To build and test it locally, begin with a C++14 Linux development environment with CMake and [libdeflate](https://github.com/ebiggers/libdeflate). Clone this repository and:

```
cmake . && make
Expand Down

0 comments on commit 46e1bcb

Please sign in to comment.