cmake/macros.cmake
changeset 7182 1089a8a701c3
parent 6674 45a21e50ba5e
child 9465 bf1da29c9509
equal deleted inserted replaced
7181:d35a0936c674 7182:1089a8a701c3
    61   # entries
    61   # entries
    62   foreach(_ITEM ${${_LIST}})
    62   foreach(_ITEM ${${_LIST}})
    63     set(${_OUTPUT} "${_LPREFIX}${_ITEM} ${${_OUTPUT}}")
    63     set(${_OUTPUT} "${_LPREFIX}${_ITEM} ${${_OUTPUT}}")
    64   endforeach()
    64   endforeach()
    65 endmacro()
    65 endmacro()
       
    66 
       
    67 macro(CHECK_OBJC_SOURCE_COMPILES SOURCE VAR)
       
    68   set(PREV_REQUIRED_DEFS "${CMAKE_REQUIRED_DEFINITIONS}")
       
    69   set(CMAKE_REQUIRED_DEFINITIONS "-ObjC ${PREV_REQUIRED_DEFS}")
       
    70   CHECK_C_SOURCE_COMPILES(${SOURCE} ${VAR})
       
    71   set(CMAKE_REQUIRED_DEFINITIONS "${PREV_REQUIRED_DEFS}")
       
    72 endmacro()
       
    73