fix(macosCmake): Prepend .mm files in order to override cpp implementation
This commit is contained in:
parent
0525490619
commit
4119528eb2
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue