summaryrefslogtreecommitdiff
path: root/Modules/CheckLibraryExists.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-03 20:03:35 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-03 20:03:35 -0500
commit668b3f3cea574a48240242c64e45300965f8bb84 (patch)
tree58c1fab399bf139235bfc09ef9dec3096a52ca39 /Modules/CheckLibraryExists.cmake
parente720b84d6b6622a0e8780bd87fc9d364658de3f0 (diff)
downloadcmake-668b3f3cea574a48240242c64e45300965f8bb84.tar.gz
Fix problems with required flags
Diffstat (limited to 'Modules/CheckLibraryExists.cmake')
-rw-r--r--Modules/CheckLibraryExists.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckLibraryExists.cmake b/Modules/CheckLibraryExists.cmake
index e206a7c1f8..ea223d3c29 100644
--- a/Modules/CheckLibraryExists.cmake
+++ b/Modules/CheckLibraryExists.cmake
@@ -8,8 +8,8 @@
MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE)
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
- SET(MACRO_CHECK_LIBRARY_EXISTS_DEFINITION -DCHECK_FUNCTION_EXISTS=${FUNCTION}
- ${CMAKE_REQUIRED_FLAGS})
+ SET(MACRO_CHECK_LIBRARY_EXISTS_DEFINITION
+ "-DCHECK_FUNCTION_EXISTS=${FUNCTION} ${CMAKE_REQUIRED_FLAGS}")
MESSAGE(STATUS "Looking for ${FUNCTION} in ${LIBRARY}")
SET(CHECK_LIBRARY_EXISTS_LIBRARIES ${LIBRARY})
IF(CMAKE_REQUIRED_LIBRARIES)