mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Merge pull request #9216 from alalek:build_global_defines
This commit is contained in:
commit
8741d97a4f
@ -227,7 +227,7 @@ macro(ocv_add_module _name)
|
|||||||
project(${the_module})
|
project(${the_module})
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-D_USE_MATH_DEFINES # M_PI constant in MSVS
|
-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)
|
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS # to use C libraries from C++ code (ffmpeg)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user