parent
6d5592a201
commit
686a0f3456
|
@ -92,12 +92,16 @@ macro(LISTTOSTRREV _LIST _OUTPUT)
|
||||||
endforeach()
|
endforeach()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(CHECK_OBJC_SOURCE_COMPILES SOURCE VAR)
|
if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
|
||||||
set(PREV_REQUIRED_DEFS "${CMAKE_REQUIRED_DEFINITIONS}")
|
macro(CHECK_OBJC_SOURCE_COMPILES SOURCE VAR)
|
||||||
set(CMAKE_REQUIRED_DEFINITIONS "-x objective-c ${PREV_REQUIRED_DEFS}")
|
set(PREV_REQUIRED_DEFS "${CMAKE_REQUIRED_DEFINITIONS}")
|
||||||
CHECK_C_SOURCE_COMPILES(${SOURCE} ${VAR})
|
set(CMAKE_REQUIRED_DEFINITIONS "-x objective-c ${PREV_REQUIRED_DEFS}")
|
||||||
set(CMAKE_REQUIRED_DEFINITIONS "${PREV_REQUIRED_DEFS}")
|
CHECK_C_SOURCE_COMPILES(${SOURCE} ${VAR})
|
||||||
endmacro()
|
set(CMAKE_REQUIRED_DEFINITIONS "${PREV_REQUIRED_DEFS}")
|
||||||
|
endmacro()
|
||||||
|
else()
|
||||||
|
include(CheckOBJCSourceCompiles)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.13.0)
|
if(CMAKE_VERSION VERSION_LESS 3.13.0)
|
||||||
macro(target_link_directories _TARGET _SCOPE)
|
macro(target_link_directories _TARGET _SCOPE)
|
||||||
|
|
Loading…
Reference in New Issue