Commit 513c105b authored by Ben Boeckel's avatar Ben Boeckel

vtkEncodeString: ensure it is running in script mode

parent e7727a5b
......@@ -135,7 +135,7 @@ function (vtk_encode_string)
endif ()
endfunction ()
if (_vtk_encode_string_run)
if (_vtk_encode_string_run AND CMAKE_SCRIPT_MODE_FILE)
set(output_header "${binary_dir}/${output_name}.h")
set(output_source "${binary_dir}/${output_name}.cxx")
......
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