updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdab-charm / cmake_git.patch
blobba735c6a6a59bfc5bf480376e2b77e199e74bee8
1 --- src/KDAB-Charm-6b7117a/CMakeLists.txt 2011-12-07 14:35:34.000000000 +0100
2 +++ ./CMakeLists.txt 2011-12-13 11:54:35.445317832 +0100
3 @@ -19,6 +19,11 @@
4 SET( Charm_VERSION_PATCH "${CMAKE_MATCH_3}" )
5 SET( Charm_VERSION_COUNT 3 )
7 +IF( NOT ( Charm_VERSION_MAJOR AND Charm_VERSION_MINOR AND Charm_VERSION_PATCH ) )
8 + MESSAGE( FATAL_ERROR "No Git executable or valid Charm version argument found.\n"
9 + "Please pass a version to CMake e.g. cmake -DCharm_VERSION=1.0.0" )
10 +ENDIF()
12 IF( NOT CMAKE_BUILD_TYPE )
13 SET( CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE )
14 ENDIF()
15 @@ -30,6 +35,7 @@
16 MESSAGE( STATUS "Building Charm ${Charm_VERSION} in ${CMAKE_BUILD_TYPE} mode" )
18 CMAKE_MINIMUM_REQUIRED( VERSION 2.6.0 )
19 +SET( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake" )
20 FIND_PACKAGE( Qt4 4.6.0 COMPONENTS QtMain QtCore QtGui QtSql QtXml QtNetwork REQUIRED )
21 INCLUDE( UseQt4 )
22 ENABLE_TESTING()