Update CMakeLists.txt

This commit is contained in:
DanielSvoboda 2024-09-02 20:18:36 -03:00 committed by GitHub
parent 9ccd60459d
commit f2c7fac20b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()