We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcc63d7 + 5e32de8 commit 2e608b1Copy full SHA for 2e608b1
cmake/OpenCVModule.cmake
@@ -223,8 +223,10 @@ macro(ocv_add_module _name)
223
if(NOT BUILD_${the_module})
224
return() # extra protection from redefinition
225
endif()
226
- if((NOT OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD AND NOT ${the_module} STREQUAL opencv_world) OR NOT ${BUILD_opencv_world})
227
- project(${the_module})
+ if(NOT OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD OR NOT ${BUILD_opencv_world})
+ if (NOT ${the_module} STREQUAL opencv_world)
228
+ project(${the_module})
229
+ endif()
230
add_definitions(
231
-D_USE_MATH_DEFINES # M_PI constant in MSVS
232
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS # to use C libraries from C++ code (ffmpeg)
0 commit comments