diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-04 00:23:19 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-04 00:23:19 (GMT) |
commit | e720b84d6b6622a0e8780bd87fc9d364658de3f0 (patch) | |
tree | 4bb3b5de03655c1f13dcd3321d19d2cd120a7b35 /Modules/CheckVariableExists.cmake | |
parent | 624a222df3d98052d2ee9a72a0a56836045f4d1d (diff) | |
download | CMake-e720b84d6b6622a0e8780bd87fc9d364658de3f0.zip CMake-e720b84d6b6622a0e8780bd87fc9d364658de3f0.tar.gz CMake-e720b84d6b6622a0e8780bd87fc9d364658de3f0.tar.bz2 |
Add required flags
Diffstat (limited to 'Modules/CheckVariableExists.cmake')
-rw-r--r-- | Modules/CheckVariableExists.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CheckVariableExists.cmake b/Modules/CheckVariableExists.cmake index 96906f7..1635b5d 100644 --- a/Modules/CheckVariableExists.cmake +++ b/Modules/CheckVariableExists.cmake @@ -7,7 +7,8 @@ MACRO(CHECK_VARIABLE_EXISTS VAR VARIABLE) IF("${VARIABLE}" MATCHES "^${VARIABLE}$") - SET(MACRO_CHECK_VARIABLE_DEFINITIONS -DCHECK_VARIABLE_EXISTS=${VAR}) + SET(MACRO_CHECK_VARIABLE_DEFINITIONS -DCHECK_VARIABLE_EXISTS=${VAR} + ${CMAKE_REQUIRED_FLAGS}) MESSAGE(STATUS "Looking for ${VARIABLE}") IF(CMAKE_REQUIRED_LIBRARIES) SET(CHECK_VARIABLE_EXISTS_ADD_LIBRARIES |