fix(macosCmake): Prepend .mm files in order to override cpp implementation

This commit is contained in:
Alex Jbanca 2023-01-17 12:57:25 +02:00 committed by Michał
parent 0525490619
commit 4119528eb2
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ macro(add_target name type)
if(APPLE)
file(GLOB MM_FILES src/*.mm src/Status/*.mm)
list(APPEND SOURCES ${MM_FILES})
#prepend items because .mm files need build priority to override cpp impl
list(INSERT SOURCES 0 ${MM_FILES})
endif()
add_library(${name} ${type} ${SOURCES} ${HEADERS} ${MONITORING_SOURCES} ${MONITORING_HEADERS})