Skip to content
Snippets Groups Projects
Commit 3e2271e7 authored by Martin Nolte's avatar Martin Nolte
Browse files

Merge branch 'bugfix/fix-version-detection-in-dune-python-find-package' into 'master'

[bugfix] fix version detection in `dune_python_find_package`

Closes #75

See merge request !364
parents 87cb1fdf eafcbdee
Branches
Tags
1 merge request!364[bugfix] fix version detection in `dune_python_find_package`
Pipeline #
......@@ -84,14 +84,13 @@ function(dune_python_find_package)
RESULT_VARIABLE retcode
OUTPUT_VARIABLE VERSION_STRING
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_QUIET
)
set(${PYPACKAGE_RESULT} TRUE)
if("${retcode}" STREQUAL "0")
if(("${VERSION_STRING}" VERSION_LESS "${PYPACKAGE_VERSION}") OR
(PYPACKAGE_EXACT AND NOT ("${VERSION_STRING}" VERSION_EQUAL "${PYPACKAGE_VERSION}")))
set(PYPACKAGE_RESULT FALSE)
set(${PYPACKAGE_RESULT} FALSE)
endif()
else()
set(VERSION_STRING "unknown version")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment