diff --git a/cmake/macros.cmake b/cmake/macros.cmake index c284c5e2f..62621ddfa 100644 --- a/cmake/macros.cmake +++ b/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)