diff options
author | root <root@rshg054.dnsready.net> | 2013-08-18 01:29:49 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-18 01:29:49 -0700 |
commit | b35ab776341c79068977be153a2ad8340eb9498c (patch) | |
tree | e5222b3e4690aa531940f5ea221351ec91ca51d9 /community/freeorion/cmake_python.patch | |
parent | 74952c750361d72d7b2d14179d4e88b6ce0a0c7e (diff) |
Sun Aug 18 01:29:08 PDT 2013
Diffstat (limited to 'community/freeorion/cmake_python.patch')
-rw-r--r-- | community/freeorion/cmake_python.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/community/freeorion/cmake_python.patch b/community/freeorion/cmake_python.patch deleted file mode 100644 index b875fa844..000000000 --- a/community/freeorion/cmake_python.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- a/client/AI/CMakeLists.txt 2012-09-10 00:11:18.659341865 +0200 -+++ b/client/AI/CMakeLists.txt 2012-09-10 00:12:37.659345189 +0200 -@@ -33,6 +33,20 @@ - find_package(PythonLibs) - if (PYTHONLIBS_FOUND) - include_directories(${PYTHON_INCLUDE_PATH}) -+ SET(_VERSION_REGEX -+ "^#define[ \t]+PY([A-Z_]*_VERSION)[ \t]+[\"]*([0-9A-Za-z\\.]+)[\"]*[ \t]*$") -+ FILE(STRINGS "${PYTHON_INCLUDE_DIR}/patchlevel.h" _VERSION_STRINGS -+ LIMIT_COUNT 10 REGEX ${_VERSION_REGEX}) -+ FOREACH(_VERSION_STRING ${_VERSION_STRINGS}) -+ STRING(REGEX REPLACE ${_VERSION_REGEX} "PYTHON\\1" -+ _VERSION_VARIABLE "${_VERSION_STRING}") -+ STRING(REGEX REPLACE ${_VERSION_REGEX} "\\2" -+ _VERSION_NUMBER "${_VERSION_STRING}") -+ SET(${_VERSION_VARIABLE} ${_VERSION_NUMBER}) -+ ENDFOREACH(_VERSION_STRING ${_VERSION_STRINGS}) -+ IF(PYTHON_MAJOR_VERSION EQUAL 3) -+ MESSAGE(FATAL_ERROR "Python 3 is not supported!") -+ ENDIF() - else () - message(FATAL_ERROR " library not found.") - endif () |