Unverified Commit 4c10b450 authored by Atemu's avatar Atemu Committed by GitHub
Browse files

Merge pull request #327442 from t4ccer/t4/opencomposite/fix

opencomposite: fix build
parents 6730e790 6ba20fc4
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -43,11 +43,17 @@ stdenv.mkDerivation {
  cmakeFlags = [
    (lib.cmakeBool "USE_SYSTEM_OPENXR" true)
    (lib.cmakeBool "USE_SYSTEM_GLM" true)
    (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
    # debug logging macros cause format-security warnings
    (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-Wno-error=format-security")
  ];

  # NOTE: `cmakeFlags` will get later tokenized by bash and there is no way
  # of inserting a flag value with a space in it (inserting `"` or `'` won't help).
  # https://discourse.nixos.org/t/cmakeflags-and-spaces-in-option-values/20170/2
  preConfigure = ''
    cmakeFlagsArray+=(
      "-DCMAKE_CXX_FLAGS=-DGLM_ENABLE_EXPERIMENTAL -Wno-error=format-security"
    )
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/lib/opencomposite