mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
Fix version parsing in conda build
This commit is contained in:
parent
9d71c172f3
commit
68f5605866
@ -4,7 +4,7 @@ endif()
|
|||||||
|
|
||||||
find_package(Git REQUIRED)
|
find_package(Git REQUIRED)
|
||||||
|
|
||||||
if(GIT_FOUND AND EXISTS ${CMAKE_CURRENT_LIST_DIR}/../.git)
|
if(GIT_FOUND AND IS_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../.git)
|
||||||
execute_process(COMMAND git describe --tags --match "v[0-9]*" --long --dirty WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} OUTPUT_VARIABLE git_version_string)
|
execute_process(COMMAND git describe --tags --match "v[0-9]*" --long --dirty WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} OUTPUT_VARIABLE git_version_string)
|
||||||
else()
|
else()
|
||||||
# for source package files (generated for ubuntu builds on launchpad) read the version from version.txt
|
# for source package files (generated for ubuntu builds on launchpad) read the version from version.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user