Browse Source

cmake: enable_language(OBJC) to fix check_objc_source_compiles().

Ozkan Sezer 3 years ago
parent
commit
3c9ac4489e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cmake/macros.cmake

+ 1 - 0
cmake/macros.cmake

@@ -101,6 +101,7 @@ if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
   endmacro()
 else()
   include(CheckOBJCSourceCompiles)
+  enable_language(OBJC)
 endif()
 
 if(CMAKE_VERSION VERSION_LESS 3.13.0)