You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/luminance-hdr/files/luminance-hdr-2.5.1-fits-au...

18 lines
518 B

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36cf008..1b75700 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,7 +132,11 @@ INCLUDE_DIRECTORIES(${GSL_INCLUDE_DIR} ${GSLCBLAS_INCLUDE_DIR})
FIND_PACKAGE(JPEG REQUIRED)
INCLUDE_DIRECTORIES(${JPEGLIB_INCLUDE_DIR})
-FIND_PACKAGE(CFITSIO)
+OPTION(USE_FITS "Enable FITS support." ON)
+IF(USE_FITS)
+ FIND_PACKAGE(CFITSIO REQUIRED)
+ENDIF()
+
IF(CFITSIO_FOUND)
INCLUDE_DIRECTORIES(${CFITSIO_INCLUDE_DIR})
SET(LIBS ${LIBS} ${CFITSIO_LIBRARIES})