[Cmake-commits] CMake branch, next, updated. v2.8.8-3008-gf4f94ca
Rolf Eike Beer
eike at sf-mail.de
Tue Jun 5 14:03:38 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via f4f94cad9d711ef34e2c399e897e07ea3adf07c6 (commit)
via 034a4d25850a203bbeb2f76afa2027a22447723e (commit)
from 6de3ce053ebba24c0390be79aae01dbbc835a56d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f4f94cad9d711ef34e2c399e897e07ea3adf07c6
commit f4f94cad9d711ef34e2c399e897e07ea3adf07c6
Merge: 6de3ce0 034a4d2
Author: Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Tue Jun 5 14:03:37 2012 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Jun 5 14:03:37 2012 -0400
Merge topic 'FindPythonLibs-13216' into next
034a4d2 FindPythonLibs: honor EXACT version specification (#13216)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=034a4d25850a203bbeb2f76afa2027a22447723e
commit 034a4d25850a203bbeb2f76afa2027a22447723e
Author: Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Tue Jun 5 20:02:58 2012 +0200
Commit: Rolf Eike Beer <eike at sf-mail.de>
CommitDate: Tue Jun 5 20:02:58 2012 +0200
FindPythonLibs: honor EXACT version specification (#13216)
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index 478ebcb..9901374 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -45,13 +45,19 @@ IF(PythonLibs_FIND_VERSION)
STRING(REGEX REPLACE "^([0-9]+\\.[0-9]+).*" "\\1" _PYTHON_FIND_MAJ_MIN "${PythonLibs_FIND_VERSION}")
STRING(REGEX REPLACE "^([0-9]+).*" "\\1" _PYTHON_FIND_MAJ "${_PYTHON_FIND_MAJ_MIN}")
UNSET(_PYTHON_FIND_OTHER_VERSIONS)
- IF(NOT PythonLibs_FIND_VERSION_EXACT)
+ IF(PythonLibs_FIND_VERSION_EXACT)
+ IF (_PYTHON_FIND_MAJ_MIN STREQUAL PythonLibs_FIND_VERSION)
+ SET(_PYTHON_FIND_OTHER_VERSIONS "${PythonLibs_FIND_VERSION}")
+ ELSE (_PYTHON_FIND_MAJ_MIN STREQUAL PythonLibs_FIND_VERSION)
+ SET(_PYTHON_FIND_OTHER_VERSIONS "${PythonLibs_FIND_VERSION}" "${_PYTHON_FIND_MAJ_MIN}")
+ ENDIF (_PYTHON_FIND_MAJ_MIN STREQUAL PythonLibs_FIND_VERSION)
+ ENDIF(PythonLibs_FIND_VERSION_EXACT)
FOREACH(_PYTHON_V ${_PYTHON${_PYTHON_FIND_MAJ}_VERSIONS})
IF(NOT _PYTHON_V VERSION_LESS _PYTHON_FIND_MAJ_MIN)
LIST(APPEND _PYTHON_FIND_OTHER_VERSIONS ${_PYTHON_V})
ENDIF()
ENDFOREACH()
- ENDIF(NOT PythonLibs_FIND_VERSION_EXACT)
+ ENDIF(PythonLibs_FIND_VERSION_EXACT)
UNSET(_PYTHON_FIND_MAJ_MIN)
UNSET(_PYTHON_FIND_MAJ)
ELSE(PythonLibs_FIND_VERSION MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$")
-----------------------------------------------------------------------
Summary of changes:
Modules/FindPythonLibs.cmake | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list