diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2022-05-26 11:09:53 (GMT) |
---|---|---|
committer | Seth R Johnson <johnsonsr@ornl.gov> | 2022-05-31 11:34:49 (GMT) |
commit | 3acbe073baa2f884073f5d864a17a642d8f24715 (patch) | |
tree | 8be5a7c06524a8d74980f07cfb41d6c2a20869a8 /Help/guide/tutorial/Step6/MathFunctions/MakeTable.cxx | |
parent | 35d975fe4a5726ab901742f30ef53a6551adef43 (diff) | |
download | CMake-3acbe073baa2f884073f5d864a17a642d8f24715.zip CMake-3acbe073baa2f884073f5d864a17a642d8f24715.tar.gz CMake-3acbe073baa2f884073f5d864a17a642d8f24715.tar.bz2 |
FindJava: improve failure/verbosity when 'java -version' fails
On macOS monterey, `java -version` returns
```
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
```
which does not match the existing regex. Instead of hitting a fatal error if required,
reset the variable and let FindPackage handle the result.
If `QUIET` is requested, don't print anything if the version query fails. Otherwise, print the message.
Additionally, clean up temporary variables set by the execute_process commands.
Diffstat (limited to 'Help/guide/tutorial/Step6/MathFunctions/MakeTable.cxx')
0 files changed, 0 insertions, 0 deletions