[Bug 852815] New: build issues with cmake
https://bugzilla.novell.com/show_bug.cgi?id=852815 https://bugzilla.novell.com/show_bug.cgi?id=852815#c0 Summary: build issues with cmake Classification: openSUSE Product: openSUSE 13.1 Version: RC 1 Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dgholstein@embarqmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 I downloaded the latest version of Cairo Dock. When running: cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr I get this: CMake Error at src/gldit/CMakeLists.txt:71 (if): if given arguments: "GREATER" "3" "OR" "(" "EQUAL" "3" "AND" "GREATER" "8" ")" Reproducible: Always Steps to Reproduce: replace: # Gtk > 3.8 if (${GTK_MAJOR} GREATER 3 OR (${GTK_MAJOR} EQUAL 3 AND ${GTK_MINOR} GREATER 8)) LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) endif() with: # Gtk > 3.8 if ($GTK_MAJOR EQUAL 3 AND $GTK_MINOR GREATER 8) LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) endif() Actual Results: error in cmake Expected Results: successful cmake A work around is to get rid of the curly brackets and replace: # Gtk > 3.8 if (${GTK_MAJOR} GREATER 3 OR (${GTK_MAJOR} EQUAL 3 AND ${GTK_MINOR} GREATER 8)) LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) endif() with: # Gtk > 3.8 if ($GTK_MAJOR EQUAL 3 AND $GTK_MINOR GREATER 8) LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) endif() -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=852815 https://bugzilla.novell.com/show_bug.cgi?id=852815#c1 Johannes Obermayr <johannesobermayr@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |UPSTREAM --- Comment #1 from Johannes Obermayr <johannesobermayr@gmx.de> 2013-11-28 20:43:04 UTC --- (In reply to comment #0)
# Gtk > 3.8 if ($GTK_MAJOR EQUAL 3 AND $GTK_MINOR GREATER 8) LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) endif()
And what if you have Gtk 4 which should be TRUE by original logic? if (NOT "${GTK_VERSION}" VERSION_LESS 3.9) # VERSION_MIN would be great ;) .. endif() Please report the bug on launchpad against 3.3 branch: https://bugs.launchpad.net/cairo-dock/+bugs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com