mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
treewide: remove CMAKE_BUILD_TYPE from cmakeFlags (#336854)
This commit is contained in:
commit
8aa42ae0d9
|
@ -68,9 +68,7 @@ clangStdenv.mkDerivation rec {
|
|||
zlib
|
||||
];
|
||||
|
||||
cmakeFlags = lib.optionals debug [
|
||||
"-DCMAKE_BUILD_TYPE=Debug"
|
||||
];
|
||||
cmakeBuildType = if debug then "Debug" else "Release";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/xmagics/executable.cpp \
|
||||
|
|
|
@ -138,7 +138,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "NON_PORTABLE" true)
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
|
||||
(lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "${placeholder "out"}/2s2h")
|
||||
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_IMGUI" "${imgui'.src}")
|
||||
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_LIBGFXD" "${libgfxd}")
|
||||
|
|
|
@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
yaml-cpp
|
||||
];
|
||||
|
||||
cmakeFlags = if debug then [ "-DCMAKE_BUILD_TYPE=Debug" ] else [ ];
|
||||
cmakeBuildType = if debug then "Debug" else "Release";
|
||||
|
||||
clang = if enableLibcxx then llvmPackages.libcxxClang else llvmPackages.clang;
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@ stdenv.mkDerivation {
|
|||
SDL2
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out/share/CroMagRally"
|
||||
|
|
|
@ -35,10 +35,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
openssl
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D httping $out/bin/httping
|
||||
|
|
|
@ -24,7 +24,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DENABLE_DRI3=ON"
|
||||
"-DENABLE_DRM=ON"
|
||||
"-DENABLE_VA=ON"
|
||||
|
|
|
@ -60,8 +60,6 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace src/tools/cover/LmsCover.cpp --replace-fail "/etc/lms.conf" "$out/share/lms/lms.conf"
|
||||
'';
|
||||
|
||||
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/share/lms/lms.conf --replace-fail "/usr/bin/ffmpeg" "${ffmpeg}/bin/ffmpeg"
|
||||
substituteInPlace $out/share/lms/lms.conf --replace-fail "/usr/share/Wt/resources" "${wt}/share/Wt/resources"
|
||||
|
|
|
@ -54,9 +54,10 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
|||
]
|
||||
);
|
||||
|
||||
cmakeBuildType = "None";
|
||||
|
||||
cmakeFlags =
|
||||
[
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "None")
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
]
|
||||
++ lib.optionals cudaSupport [
|
||||
|
|
|
@ -57,13 +57,14 @@ in
|
|||
]
|
||||
);
|
||||
|
||||
cmakeBuildType = "None";
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "INSTALL_FLATTEN" false)
|
||||
(lib.cmakeBool "INSTALL_PYTHON" true)
|
||||
(lib.cmakeBool "INSTALL_RESOURCE" true)
|
||||
(lib.cmakeBool "USE_MAADEPS" false)
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "None")
|
||||
(lib.cmakeFeature "MAA_VERSION" "v${finalAttr.version}")
|
||||
];
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
"-DMANIFOLD_TEST=ON"
|
||||
"-DMANIFOLD_CROSS_SECTION=ON"
|
||||
|
|
|
@ -23,10 +23,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
eigen
|
||||
];
|
||||
|
||||
cmakeFlakes = [
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Collection of computer vision methods for solving geometric vision problems";
|
||||
homepage = "https://github.com/laurentkneip/opengv";
|
||||
|
|
|
@ -62,17 +62,14 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
sed -i "/add_subdirectory(bridge-gui-tester)/d" CMakeLists.txt
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
cmakeFlagsArray+=(
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DBRIDGE_APP_FULL_NAME=Proton Mail Bridge"
|
||||
"-DBRIDGE_VENDOR=Proton AG"
|
||||
"-DBRIDGE_REVISION=${finalAttrs.src.rev}"
|
||||
"-DBRIDGE_TAG=${finalAttrs.version}"
|
||||
"-DBRIDGE_BUILD_ENV=Nix"
|
||||
"-DBRIDGE_APP_VERSION=${finalAttrs.version}"
|
||||
)
|
||||
'';
|
||||
cmakeFlags = [
|
||||
"-DBRIDGE_APP_FULL_NAME=Proton Mail Bridge"
|
||||
"-DBRIDGE_VENDOR=Proton AG"
|
||||
"-DBRIDGE_REVISION=${finalAttrs.src.rev}"
|
||||
"-DBRIDGE_TAG=${finalAttrs.version}"
|
||||
"-DBRIDGE_BUILD_ENV=Nix"
|
||||
"-DBRIDGE_APP_VERSION=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
|
|
@ -29,8 +29,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
smartmontools
|
||||
];
|
||||
|
||||
cmakeBuildType = "MinSizeRel";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE:STRING=MinSizeRel"
|
||||
"-DQT_VERSION_MAJOR=6"
|
||||
];
|
||||
|
||||
|
|
|
@ -54,7 +54,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
|
||||
(lib.cmakeBool "DYN_GTK" false)
|
||||
(lib.cmakeBool "DYN_OPENAL" false)
|
||||
];
|
||||
|
|
|
@ -44,9 +44,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
cmakeBuildType = "MinSizeRel";
|
||||
|
||||
# https://github.com/blueprint-freespeech/ricochet-refresh/blob/main/BUILDING.md
|
||||
cmakeFlags = [
|
||||
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "MinSizeRel")
|
||||
(lib.cmakeBool "RICOCHET_REFRESH_INSTALL_DESKTOP" true)
|
||||
(lib.cmakeBool "USE_SUBMODULE_FMT" true)
|
||||
];
|
||||
|
|
|
@ -22,8 +22,6 @@ stdenv.mkDerivation rec {
|
|||
hash = "sha256-kTvIMsRI99U2ovkN5pC4OUS/bJWpRYSuRcvObvQRnbQ=";
|
||||
};
|
||||
|
||||
cmakeFlags = ["-DCMAKE_BUILD_TYPE='Release'"];
|
||||
|
||||
nativeBuildInputs = [pkg-config cmake];
|
||||
buildInputs = [libebur128 taglib ffmpeg inih fmt zlib];
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ stdenv.mkDerivation {
|
|||
|
||||
buildInputs = [ glib zlib libpng ];
|
||||
|
||||
cmakeFlags = [ "-DINSTALL_HELPER_SCRIPTS=OFF" "-DCMAKE_BUILD_TYPE=RELEASE" ];
|
||||
cmakeFlags = [ "-DINSTALL_HELPER_SCRIPTS=OFF" ];
|
||||
|
||||
meta = with lib; {
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
|
|
|
@ -45,7 +45,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
cmakeFlags = [
|
||||
"-Wno-dev" # dev warnings are only needed for upstream development
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DWL_INSTALL_BASEDIR=${placeholder "out"}/share/widelands" # for COPYING, Changelog, etc.
|
||||
"-DWL_INSTALL_DATADIR=${placeholder "out"}/share/widelands" # for game data
|
||||
"-DWL_INSTALL_BINDIR=${placeholder "out"}/bin"
|
||||
|
|
Loading…
Reference in a new issue