spdlog: propagate fmt
fmt is needed by the CMake config script.
This commit is contained in:
parent
4e07176ad7
commit
03ef0aae0a
@ -14,7 +14,8 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ fmt ];
|
# spdlog <1.3 uses a bundled version of fmt
|
||||||
|
propagatedBuildInputs = lib.optional (lib.versionAtLeast version "1.3") fmt;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
"-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
||||||
@ -25,7 +26,9 @@ let
|
|||||||
"-DSPDLOG_FMT_EXTERNAL=ON"
|
"-DSPDLOG_FMT_EXTERNAL=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
outputs = [ "out" "doc" ]
|
||||||
|
# spdlog <1.4 is header only, no need to split libraries and headers
|
||||||
|
++ lib.optional (lib.versionAtLeast version "1.4") "dev";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/doc/spdlog
|
mkdir -p $out/share/doc/spdlog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user