diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 9df0844b9..156959ba5 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -380,13 +380,15 @@ message(STATUS "CMAKE_SYSTEM_PROCESSOR := ${CMAKE_SYSTEM_PROCESSOR}") if (APPLE) message(STATUS "Apple device detected.") set(ADDITIONAL_SRC ${PM3_ROOT}/client/src/util_darwin.h ${PM3_ROOT}/client/src/util_darwin.m ${ADDITIONAL_SRC}) + if (EXISTS /private/var/mobile) message(STATUS "iOS detected.") set(ADDITIONAL_LNK "-framework Foundation" "-framework UIKit") - else + else (EXISTS /private/var/mobile) message(STATUS "macOS detected.") set(ADDITIONAL_LNK "-framework Foundation" "-framework AppKit") endif (EXISTS /private/var/mobile) + endif (APPLE) if ((NOT SKIPQT EQUAL 1) AND (Qt5_FOUND))