Harden FindSphinx.cmake
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 19 Aug 2015 14:05:54 +0000 (16:05 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 19 Aug 2015 14:05:54 +0000 (16:05 +0200)
commitf10f1081b44031b524129934202dc890671ba437
tree301fae60f9718249550707f6089607bd4b1e7b65
parent5880df1d4ddc4c1379668d210d7c90cd43bbb152
Harden FindSphinx.cmake

If execute_process failed somehow, then SPHINX_VERSION_OUTPUT_VARIABLE
could be empty. If so, we want the detection to work, and to report
that a valid Sphinx was not found. This changes makes sure the
string() command is valid CMake.

Change-Id: I0d6f483d15776402504c77689b5228b094dd605f
cmake/FindSphinx.cmake