Add Definition "_USE_MATH_DEFINES" for dnn plugin on Win32 build

This commit is contained in:
Susumu IINO 2024-04-07 21:08:09 +09:00
parent 5121a1bf0d
commit a0b28f8b06

View File

@ -50,6 +50,7 @@ function(ocv_create_builtin_dnn_plugin name target)
endforeach()
if(WIN32)
add_definitions(-D_USE_MATH_DEFINES)
set(OPENCV_PLUGIN_VERSION "${OPENCV_DLLVERSION}" CACHE STRING "")
if(CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)
set(OPENCV_PLUGIN_ARCH "_64" CACHE STRING "")