Merge branch 'feature/update-uselatex.cmake' into 'master'
[cmake] Update UseLATEX.cmake to upstream 2.4.6
This is optional for 2.6. If you don't feel it to be in 2.6, just reject it.
See merge request !380 (merged)
(cherry picked from commit ad1bc70c)
7adf5525 [cmake] Update UseLATEX.cmake to upstream 2.4.6