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

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:33:15 CEST 2016


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

gottcode pushed a commit to annotated tag v1.0.1
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 5536819f867b39db6b9020ce7f757c02d5faa86b
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 1628b4d..e0c4f5c 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 25ca28a..451513b 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