Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b7630a08
Commit
b7630a08
authored
8 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: add global defines to enable useful macros
parent
f4fdd94c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+4
-0
No files found.
cmake/OpenCVModule.cmake
View file @
b7630a08
...
...
@@ -224,6 +224,10 @@ macro(ocv_add_module _name)
endif
()
if
((
NOT OPENCV_MODULE_
${
the_module
}
_IS_PART_OF_WORLD AND NOT
${
the_module
}
STREQUAL opencv_world
)
OR NOT
${
BUILD_opencv_world
}
)
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
()
endif
()
endmacro
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment