Skip to content

Commit a321cce

Browse files
authored
Fix build under directories with '.cpp' string.
1 parent bcac7bd commit a321cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/cl2cpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (NOT cl_list)
99
message(FATAL_ERROR "Can't find OpenCL kernels in directory: ${CL_DIR}")
1010
endif()
1111

12-
string(REPLACE ".cpp" ".hpp" OUTPUT_HPP "${OUTPUT}")
12+
string(REGEX REPLACE "\\.cpp$" ".hpp" OUTPUT_HPP "${OUTPUT}")
1313
get_filename_component(OUTPUT_HPP_NAME "${OUTPUT_HPP}" NAME)
1414

1515
if("${MODULE_NAME}" STREQUAL "ocl")

0 commit comments

Comments
 (0)