Try to fix libatomic linkage on raspbian

SPE-1073
This commit is contained in:
tamasmeszaros 2020-01-20 12:50:48 +01:00
parent 6cfad6848f
commit 87f2578ee7

View File

@ -262,10 +262,8 @@ target_link_libraries(libslic3r
${CMAKE_DL_LIBS}
)
find_library(CXX_ATOMIC_LIBRARY atomic)
if (CXX_ATOMIC_LIBRARY)
target_link_libraries(libslic3r ${CXX_ATOMIC_LIBRARY})
if (NOT MSVC)
target_link_libraries(libslic3r atomic) # no cmake magic for this...
endif()
if (TARGET OpenVDB::openvdb)