Do not copy cv_cpu_helper.h to parent if OpenCV is a submodule

This commit is contained in:
Dmitry Kurtaev 2018-07-23 23:34:50 +03:00
parent 7d40fcead5
commit 0c4d5ffecd

View File

@ -740,7 +740,7 @@ macro(ocv_compiler_optimization_fill_cpu_config)
")
set(__file "${CMAKE_SOURCE_DIR}/modules/core/include/opencv2/core/cv_cpu_helper.h")
set(__file "${OpenCV_SOURCE_DIR}/modules/core/include/opencv2/core/cv_cpu_helper.h")
if(EXISTS "${__file}")
file(READ "${__file}" __content)
endif()