Do not build apple objective-c codes if using gcc
authorNicolas Martin <nicolas.martin.3d@gmail.com>
Fri, 21 Feb 2014 06:39:48 +0000 (01:39 -0500)
committerNicolas Martin <nicolas.martin.3d@gmail.com>
Mon, 24 Feb 2014 14:44:49 +0000 (09:44 -0500)
cmake/OpenCVFindLibsGUI.cmake
cmake/OpenCVFindLibsVideo.cmake

index c80beca..a054324 100644 (file)
@@ -69,7 +69,7 @@ endif(WITH_OPENGL)
 if(APPLE)
   if(WITH_CARBON)
     set(HAVE_CARBON YES)
-  elseif(NOT IOS)
+  elseif(NOT IOS AND CMAKE_COMPILER_IS_CLANGCXX)
     set(HAVE_COCOA YES)
   endif()
 endif()
index 93cce2b..5520d05 100644 (file)
@@ -273,7 +273,7 @@ endif()
 if (NOT IOS)
   if(WITH_QUICKTIME)
     set(HAVE_QUICKTIME YES)
-  elseif(APPLE)
+  elseif(APPLE AND CMAKE_COMPILER_IS_CLANGCXX)
     set(HAVE_QTKIT YES)
   endif()
 endif()