summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2016-06-30 12:22:43 +0300
committerJasem Mutlaq <[email protected]>2016-06-30 12:22:43 +0300
commite03354aa5bbab2876ec50127d4f80329be6a7135 (patch)
tree5dc041451d0837f28f677c57f28305c18557351a
parent07e73be65dbdfc075ff104b3170bb1abfd8d4260 (diff)
Fix INDI find failure when it does not exist
-rw-r--r--cmake/modules/FindINDI.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/FindINDI.cmake b/cmake/modules/FindINDI.cmake
index 566e1bf..1b7b439 100644
--- a/cmake/modules/FindINDI.cmake
+++ b/cmake/modules/FindINDI.cmake
@@ -62,6 +62,7 @@ else (INDI_INCLUDE_DIR AND INDI_LIBRARIES AND INDI_CLIENT_LIBRARIES)
${GNUWIN32_DIR}/include
)
+if (INDI_INCLUDE_DIR)
_INDI_check_version()
find_library(INDI_LIBRARIES NAMES indi
@@ -84,6 +85,7 @@ else (INDI_INCLUDE_DIR AND INDI_LIBRARIES AND INDI_CLIENT_LIBRARIES)
${_obLinkDir}
${GNUWIN32_DIR}/lib
)
+endif(INDI_INCLUDE_DIR)
if (INDI_INCLUDE_DIR AND INDI_LIBRARIES AND (INDI_CLIENT_LIBRARIES OR INDI_CLIENT_QT_LIBRARIES))
# If INDI is found we need to make sure on WIN32 we have INDI Client Qt backend otherwise we can't use INDI