Disable LTO on apple devices
@@ -137,6 +137,9 @@ if (WIN32)
endif()
add_library(${MODULE_NAME} ${WINPR_SRCS})
+if (APPLE)
+ set_target_properties(${MODULE_NAME} PROPERTIES INTERPROCEDURAL_OPTIMIZATION FALSE)
+endif()
set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C)
set_target_properties(${MODULE_NAME} PROPERTIES OUTPUT_NAME ${MODULE_NAME}${WINPR_API_VERSION})
if (WITH_LIBRARY_VERSIONING)
