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})
