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

opencomposite: fix build
This commit is contained in:
Atemu
2024-07-15 22:17:41 +02:00
committed by GitHub
+9 -3
View File
@@ -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