1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #8002 from alalek:c_defines_2.4

(2.4) cmake: add defines to enable useful macroses
This commit is contained in:
Alexander Alekhin
2017-02-14 19:09:17 +03:00
committed by GitHub
+4
View File
@@ -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()