spdlog_1: add support for pkgsStatic

This commit is contained in:
Tobias Mayer 2021-01-23 13:28:36 +01:00
parent 27a42b9ef8
commit 67c0d5b95c
No known key found for this signature in database
GPG Key ID: F8657E90819A1298

View File

@ -17,7 +17,8 @@ let
buildInputs = [ fmt ];
cmakeFlags = [
"-DSPDLOG_BUILD_SHARED=ON"
"-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
"-DSPDLOG_BUILD_STATIC=${if stdenv.hostPlatform.isStatic then "ON" else "OFF"}"
"-DSPDLOG_BUILD_EXAMPLE=OFF"
"-DSPDLOG_BUILD_BENCH=OFF"
"-DSPDLOG_BUILD_TESTS=ON"