cmake: set default CMAKE_OSX_DEPLOYMENT_TARGET before project()

project() appears to set it to an empty string (the value of nonexistent
$ENV{MACOSX_DEPLOYMENT_TARGET}?), causing our attempt to set its default
to fail. CMake bug?
This commit is contained in:
Nadia Holmquist Pedersen
2024-12-05 15:38:44 +01:00
parent 817b409ec8
commit 7d718ada39
2 changed files with 7 additions and 2 deletions

View File

@ -95,7 +95,13 @@
libtool
ninja
pkg-config
python3
];
# Undo the SDK setup done by nixpkgs so we can use AppleClang
shellHook = ''
unset DEVELOPER_DIR SDKROOT MACOSX_DEPLOYMENT_TARGET
'';
};
};
}