minor fix to backw compat
This commit is contained in:
parent
f36608b8ed
commit
dfa4cbd19e
@ -7,6 +7,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
|
MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
|
||||||
|
SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS 1)
|
||||||
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
|
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
|
||||||
SET(MACRO_CHECK_TYPE_SIZE_FLAGS
|
SET(MACRO_CHECK_TYPE_SIZE_FLAGS
|
||||||
"-DCHECK_TYPE_SIZE_TYPE=\"${TYPE}\" ${CMAKE_REQUIRED_FLAGS}")
|
"-DCHECK_TYPE_SIZE_TYPE=\"${TYPE}\" ${CMAKE_REQUIRED_FLAGS}")
|
||||||
@ -37,4 +38,5 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
|
|||||||
APPEND)
|
APPEND)
|
||||||
ENDIF(HAVE_${VARIABLE})
|
ENDIF(HAVE_${VARIABLE})
|
||||||
ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$")
|
ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$")
|
||||||
|
SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS )
|
||||||
ENDMACRO(CHECK_TYPE_SIZE)
|
ENDMACRO(CHECK_TYPE_SIZE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user