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 d103c11 + e304795 commit 54f65a4Copy full SHA for 54f65a4
cmake/OpenCVModule.cmake
@@ -170,6 +170,10 @@ macro(ocv_add_module _name)
170
return() # extra protection from redefinition
171
endif()
172
project(${the_module})
173
+ add_definitions(
174
+ -D_USE_MATH_DEFINES # M_PI constant in MSVS
175
+ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS # to use C libraries from C++ code (ffmpeg)
176
+ )
177
endif(OPENCV_INITIAL_PASS)
178
endmacro()
179
0 commit comments