79629e9630
Fetching a cmake helper file was (rightfully) blocked when building with poudriere, leding to an abort in the configure phase. Instead of fetching the cmake helper as an additional distfile, provide the relevant functionality in a local version that uses port system information instead of trying to obtain the version number from the sources. Reported by: kai
10 lines
390 B
CMake
10 lines
390 B
CMake
function(determine_version source_dir var_prefix)
|
|
set(RNP_VERSION %%DISTVERSION%% PARENT_SCOPE)
|
|
set(RNP_VERSION_NCOMMITS 0 PARENT_SCOPE)
|
|
set(RNP_VERSION_GIT_REV 0 PARENT_SCOPE)
|
|
set(RNP_VERSION_IS_DIRTY FALSE PARENT_SCOPE)
|
|
set(RNP_VERSION_COMMIT_TIMESTAMP 0 PARENT_SCOPE)
|
|
set(RNP_VERSION_SUFFIX "" PARENT_SCOPE)
|
|
set(RNP_VERSION_FULL %%DISTVERSION%% PARENT_SCOPE)
|
|
endfunction()
|