summaryrefslogtreecommitdiffstats
path: root/Modules/CheckLibraryExists.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-04 00:23:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-04 00:23:19 (GMT)
commite720b84d6b6622a0e8780bd87fc9d364658de3f0 (patch)
tree4bb3b5de03655c1f13dcd3321d19d2cd120a7b35 /Modules/CheckLibraryExists.cmake
parent624a222df3d98052d2ee9a72a0a56836045f4d1d (diff)
downloadCMake-e720b84d6b6622a0e8780bd87fc9d364658de3f0.zip
CMake-e720b84d6b6622a0e8780bd87fc9d364658de3f0.tar.gz
CMake-e720b84d6b6622a0e8780bd87fc9d364658de3f0.tar.bz2
Add required flags
Diffstat (limited to 'Modules/CheckLibraryExists.cmake')
-rw-r--r--Modules/CheckLibraryExists.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CheckLibraryExists.cmake b/Modules/CheckLibraryExists.cmake
index f720e3e..e206a7c 100644
--- a/Modules/CheckLibraryExists.cmake
+++ b/Modules/CheckLibraryExists.cmake
@@ -8,7 +8,8 @@
MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE)
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
- SET(MACRO_CHECK_LIBRARY_EXISTS_DEFINITION -DCHECK_FUNCTION_EXISTS=${FUNCTION})
+ 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)