~ubuntu-branches/ubuntu/wily/muse/wily

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Fabrice Coutadeur, Fabrice Coutadeur, Alessio Treglia
  • Date: 2012-08-04 07:05:22 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20120804070522-yf76neafek15rjv6
Tags: 2.0.1-1
[ Fabrice Coutadeur ]
* New stable bug fixing release.
* debian/compat: set compat to 9 to automatically get hardening flags

[ Alessio Treglia ]
* Add Fabrice Coutadeur to the Uploaders field.
* Refresh 1001-buildsystem.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
# The MusE version number.
78
78
SET(MusE_VERSION_MAJOR 2)
79
79
SET(MusE_VERSION_MINOR 0)
80
 
SET(MusE_VERSION_PATCH 0)
81
 
SET(MusE_VERSION       "2.0")
82
 
SET(MusE_VERSION_FULL  "2.0")
 
80
SET(MusE_VERSION_PATCH 1)
 
81
SET(MusE_VERSION       "2.0.1")
 
82
SET(MusE_VERSION_FULL  "2.0.1")
83
83
SET(MusE_INSTALL_NAME  "muse")
84
84
SET(MusE_EXEC_NAME     "muse")
85
85
 
247
247
##
248
248
 
249
249
if (ENABLE_PYTHON)
250
 
      PKG_CHECK_MODULES(PYTHON python>=2.4)
251
 
      if (PYTHON_FOUND)
252
 
            set(PYTHON_SUPPORT ON)
253
 
      endif (PYTHON_FOUND)
 
250
      include(FindPythonLibs)
 
251
      if (PYTHONLIBS_FOUND)
 
252
# Older cmake does not define PYTHON_INCLUDE_DIRS and PYTHONLIBS_VERSION_STRING.
 
253
# We need to define them ourselves to do a version comparison
 
254
            if(DEFINED PYTHON_INCLUDE_PATH AND NOT DEFINED PYTHON_INCLUDE_DIRS)
 
255
                  set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_PATH})
 
256
            endif(DEFINED PYTHON_INCLUDE_PATH AND NOT DEFINED PYTHON_INCLUDE_DIRS)
 
257
            if(NOT DEFINED PYTHONLIBS_VERSION_STRING)
 
258
                  STRING(REGEX REPLACE ".*python(2\\.[0-9]+)" "\\1"
 
259
                         PYTHONLIBS_VERSION_STRING "${PYTHON_INCLUDE_DIRS}")
 
260
            endif(NOT DEFINED PYTHONLIBS_VERSION_STRING)
 
261
            if (NOT PYTHONLIBS_VERSION_STRING VERSION_LESS 2.4)
 
262
                  set(PYTHON_SUPPORT ON)
 
263
            endif (NOT PYTHONLIBS_VERSION_STRING VERSION_LESS 2.4)
 
264
      endif (PYTHONLIBS_FOUND)
254
265
endif (ENABLE_PYTHON)
255
266
 
256
267
##