mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Fix build under directories with '.cpp' string.
This commit is contained in:
parent
bcac7bd6d2
commit
a321cce5e4
@ -9,7 +9,7 @@ if (NOT cl_list)
|
||||
message(FATAL_ERROR "Can't find OpenCL kernels in directory: ${CL_DIR}")
|
||||
endif()
|
||||
|
||||
string(REPLACE ".cpp" ".hpp" OUTPUT_HPP "${OUTPUT}")
|
||||
string(REGEX REPLACE "\\.cpp$" ".hpp" OUTPUT_HPP "${OUTPUT}")
|
||||
get_filename_component(OUTPUT_HPP_NAME "${OUTPUT_HPP}" NAME)
|
||||
|
||||
if("${MODULE_NAME}" STREQUAL "ocl")
|
||||
|
Loading…
Reference in New Issue
Block a user