summaryrefslogtreecommitdiffstats
path: root/config/cmake/CMakeFindJavaCommon.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-29 19:43:35 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-29 19:43:35 (GMT)
commit0b6f5e88cd9215ff9daafda865ebe6d4794a6012 (patch)
tree3dc3dd18ceb9ac4245845133edea9f5b695c0e84 /config/cmake/CMakeFindJavaCommon.cmake
parented4cbbcc9bbda6c81f19fb4e7c04e948b46ce6fc (diff)
downloadhdf5-0b6f5e88cd9215ff9daafda865ebe6d4794a6012.zip
hdf5-0b6f5e88cd9215ff9daafda865ebe6d4794a6012.tar.gz
hdf5-0b6f5e88cd9215ff9daafda865ebe6d4794a6012.tar.bz2
Fix EXISTS test syntax
Diffstat (limited to 'config/cmake/CMakeFindJavaCommon.cmake')
-rw-r--r--config/cmake/CMakeFindJavaCommon.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake/CMakeFindJavaCommon.cmake b/config/cmake/CMakeFindJavaCommon.cmake
index eabb622..528791d 100644
--- a/config/cmake/CMakeFindJavaCommon.cmake
+++ b/config/cmake/CMakeFindJavaCommon.cmake
@@ -16,7 +16,7 @@ else()
set(_JAVA_HOME_EXPLICIT 1)
else()
set(_CMD_JAVA_HOME "")
- if(APPLE AND EXISTS /usr/libexec/java_home)
+ if(APPLE AND EXISTS "/usr/libexec/java_home")
execute_process(COMMAND /usr/libexec/java_home
OUTPUT_VARIABLE _CMD_JAVA_HOME OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()