We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb5c40d + b7630a0 commit dc1502aCopy full SHA for dc1502a
cmake/OpenCVModule.cmake
@@ -224,6 +224,10 @@ macro(ocv_add_module _name)
224
endif()
225
if((NOT OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD AND NOT ${the_module} STREQUAL opencv_world) OR NOT ${BUILD_opencv_world})
226
project(${the_module})
227
+ add_definitions(
228
+ -D_USE_MATH_DEFINES # M_PI constant in MSVS
229
+ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS # to use C libraries from C++ code (ffmpeg)
230
+ )
231
232
233
endmacro()
0 commit comments