Update CMakeLists.txt

This commit is contained in:
DanielSvoboda 2024-09-02 20:18:36 -03:00 committed by GitHub
parent 0d2330f589
commit 4595f1eb2e

View file

@ -738,7 +738,9 @@ if (ENABLE_QT_GUI)
MACOSX_PACKAGE_LOCATION Resources)
endif()
if (ENABLE_QT_GUI)
find_package(OpenSSL REQUIRED)
target_link_libraries(shadps4 PRIVATE ${OPENSSL_LIBRARIES})
if (UNIX AND NOT APPLE)
if (ENABLE_QT_GUI)
find_package(OpenSSL REQUIRED)
target_link_libraries(shadps4 PRIVATE ${OPENSSL_LIBRARIES})
endif()
endif()