cmake: on Apple, check for presence of an OBJC compiler
This commit is contained in:
1 parent
04bcc910e9
commit
61297f703a
2 files changed
+8
No files matched your search
@@ -110,6 +110,13 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
check_language(OBJC)
|
||||
if(NOT CMAKE_OBJC_COMPILER)
|
||||
message(WARNING "Cannot find working OBJC compiler.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 3.13.0)
|
||||
macro(target_link_directories _TARGET _SCOPE)
|
||||
link_directories(${ARGN})
|
||||
|
||||
Reference in new issue
Block a user