folly: condition shared libraries on platform setting

(cherry picked from commit cad3e3ece6)
(cherry picked from commit d0c2ddc592e377347d29be520d8cab5e75d5d602)
This commit is contained in:
Emily
2024-11-30 15:11:14 +01:00
committed by Vladimír Čunát
parent eab5ca3e51
commit 5d2806e95a
+1 -1
View File
@@ -86,7 +86,7 @@ stdenv.mkDerivation (finalAttrs: {
propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc;
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
# Folly uses these instead of the standard CMake variables for some reason.
(lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include")