Skip to content

Commit

Permalink
Search all paths in secondary searches
Browse files Browse the repository at this point in the history
  • Loading branch information
austinschneider committed Oct 21, 2024
1 parent 9af4e7b commit 04970fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmake/Packages/CFITSIO.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (NOT CFITSIO_FOUND)
if(NOT CFITSIO_INCLUDE_DIR)
unset(CFITSIO_INCLUDE_DIR)
find_path(CFITSIO_INCLUDE_DIR cfitsio/fitsio.h
PATHS $ENV{CFITSIOROOT}/include
PATHS ${CFITSIO_INCLUDE_SEARCH_PATH_LIST}
NO_DEFAULT_PATH
)
if(CFITSIO_INCLUDE_DIR)
Expand Down Expand Up @@ -80,14 +80,11 @@ if (NOT CFITSIO_FOUND)

# Search user environment for libraries, then default paths
find_library(CFITSIO_LIBRARIES cfitsio
PATHS ${LIBRARY_PATH_LIST}
PATHS ${CFITSIO_LIBRARY_SEARCH_PATH_LIST}
NO_DEFAULT_PATH
)

if(NOT CFITSIO_LIBRARIES)
find_library(CFITSIO_LIBRARIES NAMES cfitsio
PATHS ${LIBRARY_PATH_LIST}
NO_DEFAULT_PATH)
find_library(CFITSIO_LIBRARIES NAMES cfitsio)
endif()

Expand Down

0 comments on commit 04970fc

Please sign in to comment.