Browse Source

cmake: enable_language(OBJC) only for APPLE

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

+ 3 - 1
cmake/macros.cmake

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