Skip to content

Commit

Permalink
Set PATHS for find_* commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed Oct 18, 2024
1 parent 2ec4609 commit 46e8b99
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions libtiledbvcf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,17 @@ if (WIN32)
# TODO: URL_HASH SHA256=
)
FetchContent_MakeAvailable(htslib)
find_library(HTSLIB_LIBRARIES REQUIRED hts hts-3)
find_path(HTSLIB_INCLUDE_DIR NAMES htslib/hts.h)
find_library(
HTSLIB_LIBRARIES
REQUIRED
hts hts-3
PATHS ${htslib_SOURCE_DIR}
)
find_path(
HTSLIB_INCLUDE_DIR
NAMES htslib/hts.h
PATHS ${htslib_SOURCE_DIR}
)
add_library(HTSlib::HTSlib UNKNOWN IMPORTED)
set_target_properties(HTSlib::HTSlib PROPERTIES
IMPORTED_LOCATION "${HTSLIB_LIBRARIES}"
Expand Down

0 comments on commit 46e8b99

Please sign in to comment.