Commit c62051e
committed
CMakeLists.txt: quote VTK_VERSION and CGAL_VERSION
If `VTK_VERSION` is an empty string (because VTK is not installed),
the statement `if (${VTK_VERSION} VERSION_GREATER "9")` is evaluated
as `if (VERSION_GREATER "9")`, generating the following misleading
and confusing syntax error:
CMake Error at CMakeLists.txt:151 (if):
if given arguments:
"VERSION_GREATER" "9"
Unknown arguments specified
Quote `VTK_VERSION` to avoid the error. We do the same for `CGAL_VERSION`
for consistency (although `CGAL_VERSION` shouldn't be affected by the same
problem since errors are not ignored)
Signed-off-by: Yifeng Li <tomli@tomli.me>1 parent 305f5be commit c62051e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments