diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-07-12 15:05:57 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-07-12 15:05:57 (GMT) |
commit | a5be2b77823d6dd2ce1fd6859eb037dd2c939134 (patch) | |
tree | 4eae0937140343521a1b263f4530d64dca65b215 /Modules/FindCURL.cmake | |
parent | 1f28b3b46906048769ebf2ed84e5bc8ddbe008fd (diff) | |
download | CMake-a5be2b77823d6dd2ce1fd6859eb037dd2c939134.zip CMake-a5be2b77823d6dd2ce1fd6859eb037dd2c939134.tar.gz CMake-a5be2b77823d6dd2ce1fd6859eb037dd2c939134.tar.bz2 |
BUG: honor REQUIRED and QUIETLY (#5312)
Alex
Diffstat (limited to 'Modules/FindCURL.cmake')
-rw-r--r-- | Modules/FindCURL.cmake | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake index 57c1bbc..37587ca 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) |