mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 00:01:52 -04:00
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
9 lines
390 B
CMake
9 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()
|