treewide: don’t set CMAKE_SYSTEM_NAME
This commit is contained in:
@@ -15,8 +15,6 @@ stdenv.mkDerivation rec {
|
|||||||
cmakeFlags = []
|
cmakeFlags = []
|
||||||
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
"-DMSGPACK_BUILD_EXAMPLES=OFF"
|
"-DMSGPACK_BUILD_EXAMPLES=OFF"
|
||||||
++ stdenv.lib.optional (stdenv.hostPlatform.libc == "msvcrt")
|
|
||||||
"-DCMAKE_SYSTEM_NAME=Windows"
|
|
||||||
;
|
;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBuildTests=${if doCheck then "ON" else "OFF"}"
|
"-DBuildTests=${if doCheck then "ON" else "OFF"}"
|
||||||
] ++ stdenv.lib.optionals (stdenv.hostPlatform.libc == "msvcrt") [
|
|
||||||
"-DCMAKE_SYSTEM_NAME=Windows"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||||
|
|||||||
@@ -15,9 +15,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
cmakeFlags = stdenv.lib.optional
|
|
||||||
(stdenv.hostPlatform.libc == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" "lib" ];
|
outputs = [ "out" "dev" "lib" ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
@@ -59,4 +56,3 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake libxslt/*manpage*/ ];
|
nativeBuildInputs = [ cmake libxslt/*manpage*/ ];
|
||||||
|
|
||||||
cmakeFlags = stdenv.lib.optional
|
|
||||||
(stdenv.hostPlatform.libc or null == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
|
|
||||||
|
|
||||||
# ATM bin/tidy is statically linked, as upstream provides no other option yet.
|
# ATM bin/tidy is statically linked, as upstream provides no other option yet.
|
||||||
# https://github.com/htacg/tidy-html5/issues/326#issuecomment-160322107
|
# https://github.com/htacg/tidy-html5/issues/326#issuecomment-160322107
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user