Unverified Commit 182a524c authored by Gavin John's avatar Gavin John
Browse files

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
parent ae725baf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;