Use ECM's DATAROOTDIR instead of a custom variable
(cherry picked from commit c3252958b93a4f58660f5ca4c6c6c518a08c4976)