提交 5a41c650 编写于 作者: A Andrey Kamaev

Fixed build of opencv_world with QT on linux #2012

上级 8231d0d1
......@@ -52,7 +52,12 @@ foreach(m ${OPENCV_MODULE_${the_module}_DEPS})
endif()
else()
if(IS_ABSOLUTE "${srcname}")
file(RELATIVE_PATH srcname "${OPENCV_MODULE_${m}_LOCATION}" "${srcname}")
if(srcname MATCHES "/(qrc|moc)_[^/]*\\.cxx$")
# QT generated sources
file(RELATIVE_PATH srcname "${${m}_BINARY_DIR}" "${srcname}")
else()
file(RELATIVE_PATH srcname "${OPENCV_MODULE_${m}_LOCATION}" "${srcname}")
endif()
endif()
string(REPLACE ".." "__" srcname "${srcname}")
get_filename_component(srcname_we ${srcname} NAME_WE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册