diff --git a/libevmjit/CMakeLists.txt b/libevmjit/CMakeLists.txt index 330eaf3c8..7d9a9c8be 100644 --- a/libevmjit/CMakeLists.txt +++ b/libevmjit/CMakeLists.txt @@ -36,7 +36,7 @@ if(${EVMJIT_VERSION_FULL} MATCHES "^v[0-9]+\\.[0-9]+") if(${NUM_VERSION_NUMBERS} GREATER 2) list(GET VERSION_NUMBERS 2 EVMJIT_VERSION_PATCH) # patch number is optional endif() - if(${NUM_VERSION_COMPONENTS} GREATER 0) + if(${NUM_VERSION_COMPONENTS} EQUAL 1 OR ${NUM_VERSION_COMPONENTS} EQUAL 3) # git describe add 2 or 0 components list(GET VERSION_COMPONENTS 1 EVMJIT_VERSION_PRERELEASE) endif() endif()