summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-08 20:12:19 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-08 20:17:40 (GMT)
commite8051b1f20d90cbefd672d1ba108362f9c55c2db (patch)
treeff7bcb58c883cb29768ea83668a6cf74441dc827 /Modules/CMakeDetermineCompilerId.cmake
parent1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe (diff)
downloadCMake-e8051b1f20d90cbefd672d1ba108362f9c55c2db.zip
CMake-e8051b1f20d90cbefd672d1ba108362f9c55c2db.tar.gz
CMake-e8051b1f20d90cbefd672d1ba108362f9c55c2db.tar.bz2
FindJava: Update check to avoid accepting macOS stub 'java' as Java
Since commit dd378258f1 (FindJava: Do not accept OS X stub 'java' as Java, 2014-10-24, v3.1.0-rc3~29^2) we try to avoid using the macOS `/usr/bin/java` stub if no underlying implementation of Java is actually installed. However, the message that `/usr/bin/java` prints when there is no Java available has changed since then. Update our check to also look for the new message. While at it, revise the way we suppress `Java_JAVA_EXECUTABLE`. Previously we set its cache entry to `Java_JAVA_EXECUTABLE-NOTFOUND`, but that would cause the same find-and-reject sequence to be followed every time CMake runs in a build tree. Instead, use the approach from commit 2c0db404d1 (FindSubversion: Do not accept macOS stub without Xcode implementation, 2020-05-28, v3.18.0-rc1~67^2). Leave the cache entry alone and just set a normal variable of the same name to hide it.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
0 files changed, 0 insertions, 0 deletions