diff --git a/Modules/CheckLibraryExists.cmake b/Modules/CheckLibraryExists.cmake index fbdac5f3e083a4d0a492a9efe7b0e6f297726c72..1003ca7ae2238a074663b76161e6f8861dc58004 100644 --- a/Modules/CheckLibraryExists.cmake +++ b/Modules/CheckLibraryExists.cmake @@ -22,8 +22,6 @@ MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE) IF(CMAKE_REQUIRED_LIBRARIES) SET(CHECK_LIBRARY_EXISTS_LIBRARIES ${CHECK_LIBRARY_EXISTS_LIBRARIES} ${CMAKE_REQUIRED_LIBRARIES}) - ELSE(CMAKE_REQUIRED_LIBRARIES) - SET(CHECK_LIBRARY_EXISTS_LIBRARIES) ENDIF(CMAKE_REQUIRED_LIBRARIES) TRY_COMPILE(${VARIABLE} ${CMAKE_BINARY_DIR}