Skip to content
Snippets Groups Projects
Commit fee312d8 authored by Julie Brossard's avatar Julie Brossard
Browse files

[REFAC] Change string comparison

parent 5b31ecbb
Branches
Tags
No related merge requests found
......@@ -58,8 +58,14 @@ function(get_version root_repo_dir project_name project_version_string project_v
message(STATUS ${${PROJECT_NAME}_VERSION_STRING_2})
#output string format : <semver_tag>-<commit_distance>-<commit_hash> or <semver_tag> if the HEAD is a tag
string(COMPARE EQUAL ${${PROJECT_NAME}_VERSION_STRING_2} ${${PROJECT_NAME}_VERSION_STRING} HEAD_IS_TAG)
if("${${PROJECT_NAME}_VERSION_STRING_2}" STREQUAL "${${PROJECT_NAME}_VERSION_STRING}")
set(HEAD_IS_TAG 1)
else()
set(HEAD_IS_TAG 0)
endif()
if(NOT HEAD_IS_TAG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment