Commit 12698e95 authored by Alvin Wong's avatar Alvin Wong

Fix compile errors related to _hypot define

Maniphest Tasks: T6503
parent 49ce6bd8
......@@ -119,6 +119,10 @@ MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP)
TARGET_LINK_LIBRARIES(${_logical_name} ${EXTRA_LINK_LIBRARIES})
SET_TARGET_PROPERTIES(${_logical_name} PROPERTIES PREFIX "" OUTPUT_NAME ${_child_module_name})
IF (MINGW)
TARGET_COMPILE_DEFINITIONS(${_logical_name} PRIVATE _hypot=hypot)
ENDIF (MINGW)
IF (WIN32)
SET_TARGET_PROPERTIES(${_logical_name} PROPERTIES SUFFIX ".pyd")
ENDIF (WIN32)
......
......@@ -26,5 +26,8 @@ target_link_libraries(kritarunner
Qt5::Svg
Qt5::Concurrent)
install(TARGETS kritarunner ${INSTALL_TARGETS_DEFAULT_ARGS})
if (MINGW)
target_compile_definitions(kritarunner PRIVATE _hypot=hypot)
endif (MINGW)
install(TARGETS kritarunner ${INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -24,6 +24,10 @@ target_link_libraries(
kritalibkis
)
if (MINGW)
target_compile_definitions(kritapykrita PRIVATE _hypot=hypot)
endif (MINGW)
install(TARGETS kritapykrita DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})
# Install "built-in" api
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment