Merge pull request #25834 from thiru31:4.x

Fix: compilation Issue on ARM64 (msys2 clangarm)
This commit is contained in:
Alexander Smorkalov 2024-07-01 10:34:36 +03:00 committed by GitHub
commit 930af15f47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,5 +52,9 @@ if(WITH_NEON)
endif() endif()
endif() endif()
if(MINGW)
target_compile_definitions(carotene_objs PRIVATE "-D_USE_MATH_DEFINES=1")
endif()
# we add dummy file to fix XCode build # we add dummy file to fix XCode build
add_library(carotene STATIC ${OPENCV_3RDPARTY_EXCLUDE_FROM_ALL} "$<TARGET_OBJECTS:carotene_objs>" "${CAROTENE_SOURCE_DIR}/dummy.cpp") add_library(carotene STATIC ${OPENCV_3RDPARTY_EXCLUDE_FROM_ALL} "$<TARGET_OBJECTS:carotene_objs>" "${CAROTENE_SOURCE_DIR}/dummy.cpp")