diff --git a/src/common/common.cmake b/src/common/common.cmake index 671973579f0bb..d4ba3624d3635 100644 --- a/src/common/common.cmake +++ b/src/common/common.cmake @@ -17,4 +17,8 @@ set(common_SOURCES ${CMAKE_CURRENT_LIST_DIR}/syncfilestatus.cpp ) +if(APPLE) + list(APPEND common_SOURCES ${CMAKE_CURRENT_LIST_DIR}/utility_mac.mm) +endif() + configure_file(${CMAKE_CURRENT_LIST_DIR}/vfspluginmetadata.json.in ${CMAKE_CURRENT_BINARY_DIR}/vfspluginmetadata.json) diff --git a/src/common/utility.cpp b/src/common/utility.cpp index 607bb0414ec7c..64279b1312cf6 100644 --- a/src/common/utility.cpp +++ b/src/common/utility.cpp @@ -53,7 +53,7 @@ #if defined(Q_OS_WIN) #include "utility_win.cpp" #elif defined(Q_OS_MAC) -#include "utility_mac.cpp" +#include "utility_mac.mm" #else #include "utility_unix.cpp" #endif diff --git a/src/common/utility_mac.cpp b/src/common/utility_mac.mm similarity index 100% rename from src/common/utility_mac.cpp rename to src/common/utility_mac.mm