treewide: replace -DCMAKE_BUILD_TYPE in cmakeFlags with cmakeBuildType

This commit is contained in:
Sandro Jäckel 2023-07-23 23:45:18 +02:00 committed by Anderson Torres
parent f9b9cc2c4d
commit fccf04b620
72 changed files with 59 additions and 92 deletions

View file

@ -41,7 +41,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_INSTALL_BINDIR=bin"
"-DCMAKE_BUILD_TYPE=Release"
];
nativeBuildInputs = [

View file

@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
--replace '/usr/bin/zenity' '${gnome.zenity}/bin/zenity'
'';
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DSFIZZ_TESTS=ON" ];
cmakeFlags = [ "-DSFIZZ_TESTS=ON" ];
doCheck = true;

View file

@ -22,7 +22,7 @@ mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=" ];
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=" ];
installFlags = [ "DESTDIR=$(out)" ];

View file

@ -26,7 +26,6 @@ stdenv.mkDerivation {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_GUI_DEPS=ON"
"-DReadline_ROOT_DIR=${readline.dev}"
];

View file

@ -45,7 +45,6 @@ stdenv.mkDerivation rec {
++ lib.optionals trezorSupport [ libusb1 protobuf python3 ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DUSE_DEVICE_TREZOR=ON"
"-DBUILD_GUI_DEPS=ON"
"-DReadline_ROOT_DIR=${readline.dev}"

View file

@ -58,7 +58,6 @@ stdenv.mkDerivation rec {
++ lib.optionals trezorSupport [ libusb1 protobuf python3 ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DUSE_DEVICE_TREZOR=ON"
"-DBUILD_GUI_DEPS=ON"
"-DReadline_ROOT_DIR=${readline.dev}"

View file

@ -47,7 +47,6 @@ stdenv.mkDerivation rec {
] ++ lib.optionals trezorSupport [ libusb1 protobuf python3 ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
# "-DUSE_DEVICE_TREZOR=ON"
# "-DBUILD_GUI_DEPS=ON"
"-DReadline_ROOT_DIR=${readline.dev}"

View file

@ -115,7 +115,6 @@ in
cmakeFlags = [
"-DRSTUDIO_TARGET=${if server then "Server" else "Desktop"}"
"-DCMAKE_BUILD_TYPE=Release"
"-DRSTUDIO_USE_SYSTEM_SOCI=ON"
"-DRSTUDIO_USE_SYSTEM_BOOST=ON"
"-DRSTUDIO_USE_SYSTEM_YAML_CPP=ON"

View file

@ -44,7 +44,6 @@ stdenv.mkDerivation rec {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE='Release'"
"-DENABLE_FFMPEG='true'"
"-DENABLE_LINK='true'"
"-DSYSCONFDIR=etc"

View file

@ -34,7 +34,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBRLCAD_ENABLE_STRICT=OFF"
"-DCMAKE_BUILD_TYPE=Release"
];
meta = with lib; {

View file

@ -47,10 +47,11 @@ mkDerivation rec {
--replace 'PYTHONPATH=''${_krita_python_path}' 'PYTHONPATH=${pythonPath}'
'';
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/${python3Packages.python.sitePackages}/PyQt5/bindings"
"-DPYQT_SIP_DIR_OVERRIDE=${python3Packages.pyqt5}/${python3Packages.python.sitePackages}/PyQt5/bindings"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
];
preInstall = ''

View file

@ -45,7 +45,6 @@ in stdenv.mkDerivation rec {
'';
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DPARAVIEW_ENABLE_FFMPEG=ON"
"-DPARAVIEW_ENABLE_GDAL=ON"
"-DPARAVIEW_ENABLE_MOTIONFX=ON"

View file

@ -40,9 +40,10 @@ stdenv.mkDerivation rec {
substituteInPlace src/CMakeLists.txt --replace '@libirc_includes@' '${libirc.out}'
'';
cmakeBuildType = "None";
cmakeFlags = [
"-S" "/build/source/src"
"-DCMAKE_BUILD_TYPE=None"
"-DINSTALL_DATA_DIR=bin"
"-DQT5_BUILD=ON"
"-DWEB_ENGINE=ON"

View file

@ -52,9 +52,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=MinSizeRel"
];
cmakeBuildType = "MinSizeRel";
meta = {
homepage = "https://github.com/keyleds/keyleds";

View file

@ -46,7 +46,6 @@ in
dontWrapQtApps = true;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=RELEASE"
"-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a"
"-DSDK_XPLANE=${xplaneSdk}"
];

View file

@ -42,7 +42,6 @@ mkDerivation rec {
};
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DQV2RAY_DISABLE_AUTO_UPDATE=on"
"-DQV2RAY_USE_V5_CORE=on"
"-DQV2RAY_TRANSLATION_PATH=${placeholder "out"}/share/qv2ray/lang"

View file

@ -38,9 +38,7 @@ in stdenv.mkDerivation (finalAttrs: {
propagatedBuildInputs = lib.optional usePython python.pkgs.numpy;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
] ++ lib.optional usePython "-DUSE_PYTHON_CONFIG=ON";
cmakeFlags = lib.optional usePython "-DUSE_PYTHON_CONFIG=ON";
# https://github.com/pothosware/SoapySDR/issues/352
postPatch = ''

View file

@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib rocksdb rapidjson ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DPORTABLE=off"
"-DRAPIDJSON_HOME=${rapidjson}"
"-DROCKSDB_HOME=${rocksdb}"

View file

@ -104,7 +104,6 @@ stdenv.mkDerivation rec {
"-DKICAD_BUILD_QA_TESTS=OFF"
]
++ optionals (debug) [
"-DCMAKE_BUILD_TYPE=Debug"
"-DKICAD_STDLIB_DEBUG=ON"
"-DKICAD_USE_VALGRIND=ON"
]
@ -115,6 +114,8 @@ stdenv.mkDerivation rec {
"-DKICAD_SANITIZE_THREADS=ON"
];
cmakeBuildType = if debug then "Debug" else "Release";
nativeBuildInputs = [
cmake
doxygen

View file

@ -39,7 +39,6 @@ stdenv.mkDerivation rec {
'';
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DGLAD_REPRODUCIBLE=On"
];

View file

@ -35,9 +35,8 @@ stdenv.mkDerivation rec {
preConfigure = ''
patchShebangs ./src/
'';
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Production"
];
cmakeBuildType = "Production";
meta = with lib; {
description = "A high-performance theorem prover and SMT solver";

View file

@ -21,8 +21,9 @@ stdenv.mkDerivation rec {
patchShebangs ./src/
'';
cmakeBuildType = "Production";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Production"
"-DBUILD_SHARED_LIBS=1"
"-DANTLR3_JAR=${antlr3_4}/lib/antlr/antlr-3.4-complete.jar"
];

View file

@ -72,10 +72,11 @@ in stdenv.mkDerivation rec {
(lit.override { python = kleePython; })
];
cmakeBuildType = if debug then "Debug" else if !debug && includeDebugInfo then "RelWithDebInfo" else "MinSizeRel";
cmakeFlags = let
onOff = val: if val then "ON" else "OFF";
in [
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else if !debug && includeDebugInfo then "RelWithDebInfo" else "MinSizeRel"}"
"-DKLEE_RUNTIME_BUILD_TYPE=${if debugRuntime then "Debug" else "Release"}"
"-DLLVMCC=${clang}/bin/clang"
"-DLLVMCXX=${clang}/bin/clang++"

View file

@ -49,7 +49,6 @@ stdenv.mkDerivation rec {
'' ;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DENABLE_DEPLOY_DEPENDENCIES=OFF"
"-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON"
"-DUSE_SYSTEM_PROTO_LIBS=ON"

View file

@ -72,7 +72,6 @@ mkDerivation rec {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DQTROOT=${qtbase}"
"-GNinja"
] ++ lib.optionals (!withDbus) [

View file

@ -34,7 +34,9 @@ in mkDerivation rec {
ln -s ${webClientTv} build/dependencies/web-client-tv-${webClientTvBuildId}.tar.xz
'';
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DQTROOT=${qtbase}" ];
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [ "-DQTROOT=${qtbase}" ];
# plexmediaplayer currently segfaults under wayland
qtWrapperArgs = [ "--set" "QT_QPA_PLATFORM" "xcb" ];

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-k+rG5AZjz47Q6bpVcTK7r4s7Avg3O+1iw+skK+cn0rk=";
};
cmakeFlags = lib.optional debug "-DCMAKE_BUILD_TYPE=Debug";
cmakeBuildType = if debug then "Debug" else "Release";
nativeBuildInputs = [
cmake

View file

@ -23,7 +23,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=$out"
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_TESTING=OFF"
"-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
];

View file

@ -68,7 +68,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DD_FLAGS=-d-version=TZDatabaseDir;-d-version=LibcurlPath;-J${pathConfig}"
"-DCMAKE_BUILD_TYPE=Release"
];
postConfigure = ''

View file

@ -204,6 +204,8 @@ in stdenv.mkDerivation (rec {
ln -sv $PWD/lib $out
'';
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -219,7 +221,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -212,6 +212,8 @@ in stdenv.mkDerivation (rec {
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -227,7 +229,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -202,6 +202,8 @@ in stdenv.mkDerivation (rec {
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -217,7 +219,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -164,6 +164,8 @@ in stdenv.mkDerivation (rec {
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -179,7 +181,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -162,6 +162,8 @@ in stdenv.mkDerivation (rec {
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -177,7 +179,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -298,6 +298,8 @@ in stdenv.mkDerivation (rec {
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -313,7 +315,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -286,6 +286,8 @@ in
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -301,7 +303,6 @@ in
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -141,6 +141,8 @@ stdenv.mkDerivation (rec {
ln -sv $PWD/lib $out
'';
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -156,7 +158,6 @@ stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -161,6 +161,8 @@ stdenv.mkDerivation (rec {
ln -sv $PWD/lib $out
'';
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -176,7 +178,6 @@ stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -179,6 +179,8 @@ in stdenv.mkDerivation (rec {
ln -sv $PWD/lib $out
'';
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -194,7 +196,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -178,6 +178,8 @@ in stdenv.mkDerivation (rec {
ln -sv $PWD/lib $out
'';
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -193,7 +195,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -193,6 +193,8 @@ in stdenv.mkDerivation (rec {
ln -sv $PWD/lib $out
'';
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -208,7 +210,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -283,6 +283,8 @@ in stdenv.mkDerivation (rec {
# E.g. mesa.drivers use the build-id as a cache key (see #93946):
LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
cmakeBuildType = if debugVersion then "Debug" else "Release";
cmakeFlags = with stdenv; let
# These flags influence llvm-config's BuildVariables.inc in addition to the
# general build. We need to make sure these are also passed via
@ -298,7 +300,6 @@ in stdenv.mkDerivation (rec {
"-DLLVM_LINK_LLVM_DYLIB=ON"
];
in flagsForLlvmConfig ++ [
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_INSTALL_UTILS=ON" # Needed by rustc
"-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DLLVM_ENABLE_FFI=ON"

View file

@ -18,7 +18,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DFLATCC_INSTALL=on"
"-DCMAKE_BUILD_TYPE=Release"
];
env.NIX_CFLAGS_COMPILE = toString [

View file

@ -36,7 +36,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_BUILD_TYPE:String=Release"
];
passthru.updateScript = gitUpdater {

View file

@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
];
doCheck = true;
checkPhase = ''
echo "***Muparserx self-test***"

View file

@ -133,7 +133,6 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DABSL_ENABLE_INSTALL=ON"
"-DCMAKE_BUILD_TYPE=RELEASE"
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
"-DFETCHCONTENT_QUIET=OFF"
"-DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP=${abseil-cpp.src}"

View file

@ -58,9 +58,7 @@ stdenv.mkDerivation rec {
qttools
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
];
cmakeBuildType = if debug then "Debug" else "Release";
meta = with lib; {
homepage = "https://phonon.kde.org/";

View file

@ -28,9 +28,7 @@ stdenv.mkDerivation rec {
dontWrapQtApps = true;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
];
cmakeBuildType = if debug then "Debug" else "Release";
meta = with lib; {
homepage = "https://community.kde.org/Phonon";

View file

@ -52,9 +52,7 @@ stdenv.mkDerivation rec {
env.NIX_CFLAGS_COMPILE = "-fPIC";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
];
cmakeBuildType = if debug then "Debug" else "Release";
dontWrapQtApps = true;

View file

@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DBUILD_SHARED_LIBS=ON"
"-DREPROC++=ON"

View file

@ -49,8 +49,6 @@ stdenv.mkDerivation rec {
simd
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
meta = with lib; {
description = "A real-time noise suppression plugin for voice based on Xiph's RNNoise";
homepage = "https://github.com/werman/noise-suppression-for-voice";

View file

@ -28,8 +28,9 @@ stdenv.mkDerivation rec {
breakpad
];
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
"-DSENTRY_BREAKPAD_SYSTEM=On"
];

View file

@ -38,7 +38,6 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytest ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DWITH_GUDHI_PYTHON=ON"
"-DPython_ADDITIONAL_VERSIONS=3"
];

View file

@ -41,7 +41,6 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git
] ++ lib.optionals stdenv.isDarwin [
"-DWASMEDGE_FORCE_DISABLE_LTO=ON"

View file

@ -100,7 +100,6 @@ stdenv.mkDerivation {
'';
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DCROSS_COMPILE32=0"
"-DBUILD_SERVER=1"
"-DBUILD_CLIENT=1"

View file

@ -38,7 +38,6 @@ stdenv.mkDerivation rec {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DGPL=ON"
];

View file

@ -20,8 +20,6 @@ stdenv.mkDerivation rec {
SDL2
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"

View file

@ -20,8 +20,6 @@ stdenv.mkDerivation rec {
SDL2
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"

View file

@ -26,7 +26,6 @@ let
};
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DCRABNET_ENABLE_DLL=OFF"
];

View file

@ -21,8 +21,6 @@ stdenv.mkDerivation rec {
SDL2
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
installPhase = ''
runHook preInstall

View file

@ -97,7 +97,6 @@ stdenv.mkDerivation {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
# The non-free (Debian) packages uses this directory structure so do the same when compiling
# from source so we can easily merge them.
"-DCMAKE_INSTALL_LIBDIR=lib/${system}-gnu"

View file

@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
};
cmakeFlags = [
"-DCMAKE_BUILD_TYPE='Release'"
"-DBUILD_EXAMPLES='OFF'"
];

View file

@ -51,7 +51,6 @@ stdenv.mkDerivation rec {
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DUSE_BUILTIN_MQTT=false"
"-DUSE_BUILTIN_LUA=false"
"-DUSE_BUILTIN_SQLITE=false"

View file

@ -62,10 +62,11 @@ gcc10Stdenv.mkDerivation rec {
patchShebangs utils
'';
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [
"-DUSE_MAINTAINER_MODE=OFF"
"-DUSE_GOOGLE_TESTS=OFF"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
# avoid reading /proc/cpuinfo for feature detection
"-DTARGET_ARCHITECTURE=${targetArch}"

View file

@ -38,8 +38,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
"-DENABLE_DIST=ON"
"-DTARANTOOL_VERSION=${version}.builtByNix" # expects the commit hash as well
];

View file

@ -40,8 +40,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = isaFlags ++ [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
"-DASTCENC_UNIVERSAL_BUILD=OFF"
];

View file

@ -27,7 +27,6 @@ stdenv.mkDerivation rec {
buildInputs = [ boost clingo re2c ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DASPCUD_GRINGO_PATH=${clingo}/bin/gringo"
"-DASPCUD_CLASP_PATH=${clingo}/bin/clasp"
];

View file

@ -51,7 +51,6 @@ mkDerivation rec {
"-DPYTHON_LIBRARY=${python}/lib/lib${python.libPrefix}.so"
"-DPYTHON_INCLUDE_DIR=${python}/include/${python.libPrefix}"
"-DCMAKE_VERBOSE_MAKEFILE=True"
"-DCMAKE_BUILD_TYPE=Release"
"-DWITH_PYTHONQT:BOOL=ON"
];

View file

@ -42,8 +42,9 @@ stdenv.mkDerivation rec {
darwin.apple_sdk.frameworks.AppKit
];
cmakeBuildType = "MinSizeRel";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE='MinSizeRel'"
"-Wno-dev"
"-DINSTALL_PREFIX=${placeholder "out"}"
];

View file

@ -39,8 +39,6 @@ stdenv.mkDerivation {
yaml-cpp
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
installPhase = ''
runHook preInstall

View file

@ -71,7 +71,6 @@ stdenv.mkDerivation rec {
doCheck = true;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=RELEASE"
"-DINTERNAL_LXQT_WALLET=false"
"-DNOKDESUPPORT=${if withKWallet then "false" else "true"}"
"-DNOSECRETSUPPORT=${if withLibsecret then "false" else "true"}"

View file

@ -38,7 +38,6 @@ stdenv.mkDerivation rec {
};
cmakeFlags = with lib; [
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_TESTING=ON"
"-DUSE_LIBUDEV_OVER_LIBSYSTEMD=ON"
] ++ optional nvidia "-DNVML_INCLUDE_DIRS=${cudatoolkit}/include"