Fix ANTLR build on CMake <3.11 (#6864)
authorAndres Noetzli <andres.noetzli@gmail.com>
Mon, 12 Jul 2021 19:05:14 +0000 (12:05 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Jul 2021 19:05:14 +0000 (19:05 +0000)
commit3ee5f2212f287046ab9cda62174eb58ea9561d42
tree05d54305f29de1f5d152aae0e601f5779609935e
parentb35641f1a4ac8d70cf868b273971ee7c5e3b35f0
Fix ANTLR build on CMake <3.11 (#6864)

With CMake 3.11 and later, `<DOWNLOAD_DIR>` is substituted in
`ExternalProject_Add` but not in older versions [0]. To maintain
compatibility with older versions of CMake, this commit changes
`ExternalProject_Add` to use `<DOWNLOADED_FILE>` instead, which is both
nicer and substituted in older versions of CMake.

[0] https://cmake.org/cmake/help/latest/release/3.11.html#modules
cmake/FindANTLR3.cmake