diff --git a/hal/ipp/CMakeLists.txt b/hal/ipp/CMakeLists.txt index 1aa8e6abd0..5ff630c8c0 100644 --- a/hal/ipp/CMakeLists.txt +++ b/hal/ipp/CMakeLists.txt @@ -21,7 +21,7 @@ add_library(ipphal STATIC #TODO: HAVE_IPP_ICV and HAVE_IPP_IW added as private macro till OpenCV itself is # source of IPP and public definitions lead to redefinition warning # The macro should be redefined as PUBLIC when IPP part is removed from core -# to make HAL the source of IPP integration +# to make HAL the source of IPP integration. The same is true for WITH_IPP_CALLS_ENFORCED if(HAVE_IPP_ICV) target_compile_definitions(ipphal PRIVATE HAVE_IPP_ICV) endif() @@ -30,6 +30,11 @@ if(HAVE_IPP_IW) target_compile_definitions(ipphal PRIVATE HAVE_IPP_IW) endif() +if(WITH_IPP_CALLS_ENFORCED) + target_compile_definitions(ipphal PRIVATE IPP_CALLS_ENFORCED) + message("WITH_IPP_CALLS_ENFORCED=${WITH_IPP_CALLS_ENFORCED}: enforced IPP calls are enabled in IPP HAL") +endif() + target_include_directories(ipphal PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include") ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-suggest-override)