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:
Gavin John
2024-11-10 12:11:41 -08:00
parent ae725bafb3
commit 182a524cce
+5
View File
@@ -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;