Commit 54f65a46 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #8002 from alalek:c_defines_2.4

(2.4) cmake: add defines to enable useful macroses
parents d103c116 e3047956
...@@ -170,6 +170,10 @@ macro(ocv_add_module _name) ...@@ -170,6 +170,10 @@ macro(ocv_add_module _name)
return() # extra protection from redefinition return() # extra protection from redefinition
endif() endif()
project(${the_module}) 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) endif(OPENCV_INITIAL_PASS)
endmacro() endmacro()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment