configure_macos_common.cmake 886 B

123456789101112131415161718
  1. # Our CI machines do not consistently have Java installed, so a build may
  2. # detect that Java is available and working, but a test machine then not have a
  3. # working Java installed. To work around this, just act as if Java is not
  4. # available on any CI machine.
  5. set(CMake_TEST_Java OFF CACHE BOOL "")
  6. # Qt binaries get placed inside the source directory, which causes them to not
  7. # be included in the install-time rpath, but we still want them in the
  8. # build-time rpath. CMake sets CMAKE_BUILD_WITH_INSTALL_RPATH to ON by default,
  9. # so set it to OFF.
  10. set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF CACHE BOOL "")
  11. set(BUILD_QtDialog ON CACHE BOOL "")
  12. # The "XCTest" test uses an explicit deployment target chosen
  13. # when CMake itself is configured. Use a version that is not
  14. # newer than the macOS version running on any CI host.
  15. set(CMake_TEST_XCTest_DEPLOYMENT_TARGET "10.15" CACHE STRING "")