diff --git a/pkgs/by-name/cm/cmake/setup-hook.sh b/pkgs/by-name/cm/cmake/setup-hook.sh index 5e84594934f40..b4a351d6d6551 100755 --- a/pkgs/by-name/cm/cmake/setup-hook.sh +++ b/pkgs/by-name/cm/cmake/setup-hook.sh @@ -23,6 +23,10 @@ cmakeConfigurePhase() { : ${cmakeDir:=.} fi + # https://cmake.org/cmake/help/latest/prop_tgt/COMPILE_WARNING_AS_ERROR.html + # Suppress COMPILE_WARNING_AS_ERROR target property which would pass Werror + prependToVar cmakeFlags "--compile-no-warning-as-error" + if [ -z "${dontAddPrefix-}" ]; then prependToVar cmakeFlags "-DCMAKE_INSTALL_PREFIX=$prefix" fi