cmake/macros.cmake
changeset 9465 bf1da29c9509
parent 7182 1089a8a701c3
--- a/cmake/macros.cmake	Tue Apr 07 23:00:56 2015 +0200
+++ b/cmake/macros.cmake	Tue Apr 07 20:01:43 2015 -0400
@@ -66,7 +66,7 @@
 
 macro(CHECK_OBJC_SOURCE_COMPILES SOURCE VAR)
   set(PREV_REQUIRED_DEFS "${CMAKE_REQUIRED_DEFINITIONS}")
-  set(CMAKE_REQUIRED_DEFINITIONS "-ObjC ${PREV_REQUIRED_DEFS}")
+  set(CMAKE_REQUIRED_DEFINITIONS "-x objective-c ${PREV_REQUIRED_DEFS}")
   CHECK_C_SOURCE_COMPILES(${SOURCE} ${VAR})
   set(CMAKE_REQUIRED_DEFINITIONS "${PREV_REQUIRED_DEFS}")
 endmacro()