Commit 147a4db8 authored by Ben Boeckel's avatar Ben Boeckel

vtkHashSource: ensure it is running in script mode

parent 513c105b
......@@ -92,7 +92,7 @@ function (vtk_hash_source)
endif ()
if (_vtk_hash_source_run)
if (_vtk_hash_source_run AND CMAKE_SCRIPT_MODE_FILE)
file(${algorithm} "${input_file}" file_hash)
file(WRITE "${output_file}"
"#ifndef ${output_name}\n #define ${output_name} \"${file_hash}\"\n#endif\n")
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