cmake: add defines to enable useful macroses

pull/8002/head
Alexander Alekhin 8 years ago
parent 19e4c7727b
commit e304795622
  1. 4
      cmake/OpenCVModule.cmake

@ -170,6 +170,10 @@ macro(ocv_add_module _name)
return() # extra protection from redefinition
endif()
project(${the_module})
add_definitions(
-D_USE_MATH_DEFINES # M_PI constant in MSVS
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS # to use C libraries from C++ code (ffmpeg)
)
endif(OPENCV_INITIAL_PASS)
endmacro()

Loading…
Cancel
Save