diff options
author | Brad King <brad.king@kitware.com> | 2002-12-13 19:58:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-12-13 19:58:55 (GMT) |
commit | 7e824e83a9c97234f23640188c590201eeffea5d (patch) | |
tree | 6ead7ffa2b19307549baa6d5156153dbcc5deeaf /Modules/CheckLibraryExists.cmake | |
parent | 858c6c9a02bc2f0a8ab1a9a6f4ab7f3c353ef049 (diff) | |
download | CMake-7e824e83a9c97234f23640188c590201eeffea5d.zip CMake-7e824e83a9c97234f23640188c590201eeffea5d.tar.gz CMake-7e824e83a9c97234f23640188c590201eeffea5d.tar.bz2 |
ENH: Don't repeat check even if answer was no.
Diffstat (limited to 'Modules/CheckLibraryExists.cmake')
-rw-r--r-- | Modules/CheckLibraryExists.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckLibraryExists.cmake b/Modules/CheckLibraryExists.cmake index 65a6ec8..ccca0f5 100644 --- a/Modules/CheckLibraryExists.cmake +++ b/Modules/CheckLibraryExists.cmake @@ -7,7 +7,7 @@ # MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE) - IF(NOT ${VARIABLE}) + IF("${VARIABLE}" MATCHES "^${VARIABLE}$") SET(MACRO_CHECK_LIBRARY_EXISTS_DEFINITION -DCHECK_FUNCTION_EXISTS=${FUNCTION}) MESSAGE(STATUS "Looking for ${FUNCTION} in ${LIBRARY}") TRY_COMPILE(${VARIABLE} @@ -30,5 +30,5 @@ MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE) "failed with the following output:\n" "${OUTPUT}\n" APPEND) ENDIF(${VARIABLE}) - ENDIF(NOT ${VARIABLE}) + ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$") ENDMACRO(CHECK_LIBRARY_EXISTS) |