diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-05-28 16:19:20 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-05-28 16:46:31 (GMT) |
commit | 35b29d356895b54ca34358a9bacca592903c3346 (patch) | |
tree | 27699fb7ef3f9f146705652d9c1864c63b086ffb /.gitlab | |
parent | 72a7697901eb1b4476fd9b23a0b895ea1d8a30fd (diff) | |
download | CMake-35b29d356895b54ca34358a9bacca592903c3346.zip CMake-35b29d356895b54ca34358a9bacca592903c3346.tar.gz CMake-35b29d356895b54ca34358a9bacca592903c3346.tar.bz2 |
ci: disable java detection
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/configure_macos_common.cmake | 9 | ||||
-rw-r--r-- | .gitlab/ci/configure_macos_makefiles.cmake | 2 | ||||
-rw-r--r-- | .gitlab/ci/configure_macos_ninja.cmake | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/.gitlab/ci/configure_macos_common.cmake b/.gitlab/ci/configure_macos_common.cmake new file mode 100644 index 0000000..4b86d21 --- /dev/null +++ b/.gitlab/ci/configure_macos_common.cmake @@ -0,0 +1,9 @@ +# Our CI machines do not consistently have Java installed, so a build may +# detect that Java is available and working, but a test machine then not have a +# working Java installed. To work around this, just act as if Java is not +# available on any CI machine. +set(Java_JAVA_EXECUTABLE "" CACHE FILEPATH "") +set(Java_JAVAC_EXECUTABLE "" CACHE FILEPATH "") +set(Java_JAR_EXECUTABLE "" CACHE FILEPATH "") + +include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") diff --git a/.gitlab/ci/configure_macos_makefiles.cmake b/.gitlab/ci/configure_macos_makefiles.cmake index 33f0db0..0f4f194 100644 --- a/.gitlab/ci/configure_macos_makefiles.cmake +++ b/.gitlab/ci/configure_macos_makefiles.cmake @@ -1 +1 @@ -include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake") diff --git a/.gitlab/ci/configure_macos_ninja.cmake b/.gitlab/ci/configure_macos_ninja.cmake index 33f0db0..0f4f194 100644 --- a/.gitlab/ci/configure_macos_ninja.cmake +++ b/.gitlab/ci/configure_macos_ninja.cmake @@ -1 +1 @@ -include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake") |