Correction to enable compilation on platform with only GTK2 libs
authorTony <exocoder@gmail.com>
Sat, 12 Apr 2014 21:43:42 +0000 (22:43 +0100)
committerTony <exocoder@gmail.com>
Sun, 13 Apr 2014 10:11:05 +0000 (11:11 +0100)
modified:   CMakeLists.txt
modified:   cmake/OpenCVFindLibsGUI.cmake

CMakeLists.txt
cmake/OpenCVFindLibsGUI.cmake

index c081649..93b3ee6 100644 (file)
@@ -749,6 +749,7 @@ else()
       endif()
     else()
       if(HAVE_GTK3)
+<<<<<<< HEAD
         status("    GTK+ 3.x:" HAVE_GTK     THEN "YES (ver ${ALIASOF_gtk+-3.0_VERSION})"     ELSE NO)
       elseif(HAVE_GTK)
         status("    GTK+ 2.x:" HAVE_GTK      THEN "YES (ver ${ALIASOF_gtk+-2.0_VERSION})"     ELSE NO)
@@ -758,6 +759,15 @@ else()
         endif()
       endif()
       status("    GThread :" HAVE_GTHREAD  THEN "YES (ver ${ALIASOF_gthread-2.0_VERSION})"  ELSE NO)
+=======
+        status("    GTK+ 3.x:" HAVE_GTK THEN "YES (ver ${ALIASOF_gtk+-3.0_VERSION})" ELSE NO)
+      elseif(HAVE_GTK)
+        status("    GTK+ 2.x:" HAVE_GTK THEN "YES (ver ${ALIASOF_gtk+-2.0_VERSION})" ELSE NO)
+      else()
+        status("    GTK+:" NO)
+      endif()
+      status("    GThread :" HAVE_GTHREAD THEN "YES (ver ${ALIASOF_gthread-2.0_VERSION})" ELSE NO)
+>>>>>>> Correction to enable compilation on platform with only GTK2 libs
       status("    GtkGlExt:" HAVE_GTKGLEXT THEN "YES (ver ${ALIASOF_gtkglext-1.0_VERSION})" ELSE NO)
     endif()
   endif()
index 05de58c..1c13619 100644 (file)
@@ -43,7 +43,9 @@ ocv_clear_vars(HAVE_GTK HAVE_GTK3 HAVE_GTHREAD HAVE_GTKGLEXT)
 if(WITH_GTK AND NOT HAVE_QT)
   if(NOT WITH_GTK_2_X)
     CHECK_MODULE(gtk+-3.0 HAVE_GTK3)
-    set(HAVE_GTK HAVE_GTK3)
+    if(HAVE_GTK3)
+      set(HAVE_GTK TRUE)
+    endif()
   endif()
   if(NOT HAVE_GTK)
     CHECK_MODULE(gtk+-2.0 HAVE_GTK)