Commit 7f486d6b authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error under Windows

parent f7c92bbd
......@@ -6,8 +6,8 @@ FOREACH(file ${OPENCL_KERNELS})
# Load the file contents and process it.
FILE(STRINGS ${file} file_content NEWLINE_CONSUME)
STRING(REPLACE \\\n \\\\\n file_content "${file_content}")
STRING(REPLACE \n \\n file_content "${file_content}")
STRING(REPLACE \" \\\" file_content "${file_content}")
STRING(REPLACE \n \\n\"\n\" file_content "${file_content}")
# Determine a name for the variable that will contain this file's contents
FILE(RELATIVE_PATH filename ${CL_SOURCE_DIR}/kernels ${file})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment