Skip to content

Commit

Permalink
ElektraInitiative#3713 fixed gradle version check to work with number…
Browse files Browse the repository at this point in the history
…s not including patch version
  • Loading branch information
Michael Tucek authored and a-kraschitzer committed Apr 14, 2021
1 parent 75e0854 commit 52ef175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/jna/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (Java_JAVAC_EXECUTABLE)
if (GRADLE_EXECUTABLE) # set by find_program
# check Gradle version
execute_process (
COMMAND bash "-c" "${GRADLE_EXECUTABLE} -v | grep 'Gradle *' | egrep -o '[0-9]+\.[0-9]+\.[0-9]+'"
COMMAND bash "-c" "${GRADLE_EXECUTABLE} -v | grep 'Gradle *' | egrep -o '[0-9]+\.[0-9]+(\.[0-9]+)?'"
OUTPUT_VARIABLE GRADLE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)

Expand Down

0 comments on commit 52ef175

Please sign in to comment.