summaryrefslogtreecommitdiff
path: root/Modules/FindCURL.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-12 11:05:57 -0400
committerAlexander Neundorf <neundorf@kde.org>2007-07-12 11:05:57 -0400
commita5be2b77823d6dd2ce1fd6859eb037dd2c939134 (patch)
tree4eae0937140343521a1b263f4530d64dca65b215 /Modules/FindCURL.cmake
parent1f28b3b46906048769ebf2ed84e5bc8ddbe008fd (diff)
downloadcmake-a5be2b77823d6dd2ce1fd6859eb037dd2c939134.tar.gz
BUG: honor REQUIRED and QUIETLY (#5312)
Alex
Diffstat (limited to 'Modules/FindCURL.cmake')
-rw-r--r--Modules/FindCURL.cmake22
1 files changed, 13 insertions, 9 deletions
diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake
index 57c1bbcbc6..37587ca3c3 100644
--- a/Modules/FindCURL.cmake
+++ b/Modules/FindCURL.cmake
@@ -25,14 +25,18 @@ ELSE(CURL_INCLUDE_DIR AND CURL_LIBRARY)
ENDIF(CURL_INCLUDE_DIR AND CURL_LIBRARY)
# Report the results.
-IF(NOT CURL_FOUND)
- SET(CURL_DIR_MESSAGE
- "CURL was not found. Make sure CURL_LIBRARY and CURL_INCLUDE_DIR are set.")
+IF(CURL_FOUND)
IF(NOT CURL_FIND_QUIETLY)
- MESSAGE(STATUS "${CURL_DIR_MESSAGE}")
- ELSE(NOT CURL_FIND_QUIETLY)
- IF(CURL_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "${CURL_DIR_MESSAGE}")
- ENDIF(CURL_FIND_REQUIRED)
+ MESSAGE(STATUS "CURL found: ${CURL_LIBRARIES}")
ENDIF(NOT CURL_FIND_QUIETLY)
-ENDIF(NOT CURL_FOUND)
+ELSE(CURL_FOUND)
+ SET(CURL_DIR_MESSAGE
+ "CURL was not found. Make sure CURL_LIBRARY and CURL_INCLUDE_DIR are set.")
+ IF(CURL_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "${CURL_DIR_MESSAGE}")
+ ELSE(CURL_FIND_REQUIRED)
+ IF(NOT CURL_FIND_QUIETLY)
+ MESSAGE(STATUS "${CURL_DIR_MESSAGE}")
+ ENDIF(NOT CURL_FIND_QUIETLY)
+ ENDIF(CURL_FIND_REQUIRED)
+ENDIF(CURL_FOUND)