summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-28 19:16:12 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-28 19:16:12 (GMT)
commit831d1d98fcd7bc9fbabef394e32b4b9730879316 (patch)
treef206f357de1f4d4aa15c30b5c0d1ddcee56654d5
parent949ce3bf5a41301690edcb6a70db71927a0e8836 (diff)
Fix few problems that appeared after removing build_kstarslite
-rw-r--r--cmake/modules/FindCFitsio.cmake8
1 files changed, 3 insertions, 5 deletions
diff --git a/cmake/modules/FindCFitsio.cmake b/cmake/modules/FindCFitsio.cmake
index 851ed8a..3b3edee 100644
--- a/cmake/modules/FindCFitsio.cmake
+++ b/cmake/modules/FindCFitsio.cmake
@@ -30,8 +30,7 @@ else (CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARIES)
find_path(CFITSIO_INCLUDE_DIR fitsio.h
if(ANDROID)
${CMAKE_SOURCE_DIR}/build_kstarslite/include
- NO_DEFAULT_PATH
- elseif(ANDROID)
+ else(ANDROID)
${PC_CFITSIO_INCLUDE_DIRS}
${_obIncDir}
${GNUWIN32_DIR}/include
@@ -43,7 +42,7 @@ else (CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARIES)
if(ANDROID)
${CMAKE_SOURCE_DIR}/build_kstarslite/android_libs/${ANDROID_ARCHITECTURE}
else(ANDROID)
- ${PC_CFITSIO_INCLUDE_DIRS}
+ ${PC_CFITSIO_LIBRARY_DIRS}
${_obIncDir}
${GNUWIN32_DIR}/include
endif(ANDROID)
@@ -55,14 +54,13 @@ else (CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARIES)
set(CFITSIO_FOUND FALSE)
endif(CFITSIO_INCLUDE_DIR AND CFITSIO_LIBRARIES)
-
if (CFITSIO_FOUND)
if (NOT CFitsio_FIND_QUIETLY)
message(STATUS "Found CFITSIO: ${CFITSIO_LIBRARIES}")
endif (NOT CFitsio_FIND_QUIETLY)
else (CFITSIO_FOUND)
if (CFitsio_FIND_REQUIRED)
- message(FATAL_ERROR "CFITSIO not found. Please install libcfitsio0-devel and try again. http://indi.sf.net")
+ message(FATAL_ERROR "CFITSIO not found. Please install libcfitsio-dev and try again.")
endif (CFitsio_FIND_REQUIRED)
endif (CFITSIO_FOUND)