vtk: link against libatomic where needed

This commit is contained in:
q66 2020-09-01 04:40:39 +02:00
parent 497d0c5bdb
commit 94ee1edd1d
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,17 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
LDFLAGS="-lexecinfo"
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_extract() {
[ "$XBPS_TARGET_NO_ATOMIC8" ] || return 0
echo "vtk_module_link(VTK::CommonDataModel PRIVATE atomic)" >> \
Common/DataModel/CMakeLists.txt
}
post_install() {
vlicense Copyright.txt