[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 22/473: Fix cmake errors in Ubuntu 12.04.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:53:12 CET 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit a30f75357a5c098f5464f8e77011b9442b22da32
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Jun 24 12:08:24 2013 -0400

    Fix cmake errors in Ubuntu 12.04.
---
 CMakeLists.txt     |    3 +++
 src/CMakeLists.txt |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 86ae740..c85231b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,7 @@
 cmake_minimum_required(VERSION 2.8)
+if(${CMAKE_VERSION} VERSION_LESS "2.8.8")
+    cmake_policy(SET CMP0002 OLD)
+endif()
 
 project(whiskermenu)
 
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a8145e0..26fd52c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -82,7 +82,7 @@ target_link_libraries(whiskermenu
     ${libxfce4util_LIBRARIES}
     ${GTK2_LIBRARIES})
 
-string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
+string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_TOLOWER)
 if(CMAKE_BUILD_TYPE_TOLOWER MATCHES release)
     add_custom_command(TARGET whiskermenu POST_BUILD COMMAND ${CMAKE_STRIP} $<TARGET_FILE:whiskermenu>)
 endif()

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list