Remove mac extras

This commit is contained in:
Nicolas Werner 2023-06-03 04:06:13 +02:00
parent 7029547647
commit 770f79978a
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -266,10 +266,6 @@ else()
find_package(Qt6Keychain REQUIRED) find_package(Qt6Keychain REQUIRED)
endif() endif()
if (APPLE)
find_package(Qt6MacExtras REQUIRED)
endif(APPLE)
if (Qt6Widgets_FOUND) if (Qt6Widgets_FOUND)
if (Qt6Widgets_VERSION VERSION_LESS 6.5.0) if (Qt6Widgets_VERSION VERSION_LESS 6.5.0)
message(STATUS "Qt version ${Qt6Widgets_VERSION}") message(STATUS "Qt version ${Qt6Widgets_VERSION}")
@ -695,9 +691,7 @@ set_target_properties(nheko
CMAKE_SKIP_INSTALL_RPATH TRUE CMAKE_SKIP_INSTALL_RPATH TRUE
AUTOMOC ON) AUTOMOC ON)
if(APPLE) if(WIN32)
target_link_libraries (nheko PRIVATE Qt6::MacExtras)
elseif(WIN32)
target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN) target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN)
if(MSVC) if(MSVC)
target_compile_options(nheko PUBLIC "/Zc:__cplusplus") target_compile_options(nheko PUBLIC "/Zc:__cplusplus")