mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 17:39:04 +08:00
Update CMakeLists.txt to fix linux compile error (PR#13609 by @jmickelin)
This commit is contained in:
parent
78a0470666
commit
87646cad14
@ -391,6 +391,9 @@ set(SLIC3R_GUI_SOURCES
|
||||
)
|
||||
|
||||
find_package(NanoSVG REQUIRED)
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
find_package(OpenSSL REQUIRED)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
list(APPEND SLIC3R_GUI_SOURCES
|
||||
@ -453,7 +456,11 @@ target_link_libraries(
|
||||
if (MSVC)
|
||||
target_link_libraries(libslic3r_gui PUBLIC Setupapi.lib)
|
||||
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_link_libraries(libslic3r_gui PUBLIC ${DBus1_LIBRARIES})
|
||||
target_link_libraries(libslic3r_gui PUBLIC
|
||||
${DBus1_LIBRARIES}
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
)
|
||||
elseif (APPLE)
|
||||
target_link_libraries(libslic3r_gui PUBLIC ${DISKARBITRATION_LIBRARY} ${COREWLAN_LIBRARY})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user