Tests: Disable test on problematic versions of install_name_tool

According to https://cmake.org/pipermail/cmake-developers/2015-September/026462.html,
there is a bug in Xcode 7.0's install_name_tool that manifests when we
try to test file(GET_RUNTIME_DEPENDENCIES). Add a cache option to disable
this test.
This commit is contained in:
Kyle Edwards 2020-01-24 13:58:59 -05:00 committed by Brad King
parent 786b56942b
commit 162e8aeb9e
2 changed files with 9 additions and 5 deletions

View File

@ -473,7 +473,9 @@ add_RunCMake_test(install -DNO_NAMELINK=${NO_NAMELINK} -DCYGWIN=${CYGWIN} -DCMAK
-DCMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN=${CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN}
-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
-DCMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG=${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG}
-DCMAKE_EXECUTABLE_FORMAT=${CMAKE_EXECUTABLE_FORMAT})
-DCMAKE_EXECUTABLE_FORMAT=${CMAKE_EXECUTABLE_FORMAT}
-DCMake_INSTALL_NAME_TOOL_BUG=${CMake_INSTALL_NAME_TOOL_BUG}
)
add_RunCMake_test(CPackCommandLine)
add_RunCMake_test(CPackConfig)

View File

@ -156,10 +156,12 @@ run_install_test(TARGETS-RPATH)
run_install_test(InstallRequiredSystemLibraries)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos-unresolved)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos-conflict)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos-notfile)
if(NOT CMake_INSTALL_NAME_TOOL_BUG)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos-unresolved)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos-conflict)
run_install_test(file-GET_RUNTIME_DEPENDENCIES-macos-notfile)
endif()
run_cmake(file-GET_RUNTIME_DEPENDENCIES-project)
run_cmake(file-GET_RUNTIME_DEPENDENCIES-badargs1)
run_cmake(file-GET_RUNTIME_DEPENDENCIES-badargs2)