cpm-cmake: Set CURRENT_CPM_VERSION
cpm-cmake has a test to see if the CURRENT_CPM_VERSION contains development-version, and if so, it produces a warning. By setting it to the correct value, this warning is dismissed
This commit is contained in:
@@ -14,6 +14,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-KIRVztkE72juIgXquZlC6AYo78QKHBD7iCvCa+ri66k=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace cmake/CPM.cmake \
|
||||
--replace-fail "set(CURRENT_CPM_VERSION 1.0.0-development-version)" "set(CURRENT_CPM_VERSION ${finalAttrs.version})"
|
||||
'';
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user