From e7c992755ea4826b0271bb408ae5d7a011e0e19f Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 8 Apr 2019 17:10:23 +0200 Subject: Turn off linker version script support on macOS The test erroneously succeeds on macOS with an XCode generator. Explicitly set the test result to be turned off. Change-Id: Id6fcb96f420f611517e81cc3697f1c88b508bd7c Reviewed-by: Tobias Hunger --- cmake/QtBaseConfigureTests.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmake/QtBaseConfigureTests.cmake') diff --git a/cmake/QtBaseConfigureTests.cmake b/cmake/QtBaseConfigureTests.cmake index 5a345cbc3c..7a5502bc65 100644 --- a/cmake/QtBaseConfigureTests.cmake +++ b/cmake/QtBaseConfigureTests.cmake @@ -121,6 +121,13 @@ VERS_1; endif() file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map") + # For some reason the linker command line written by the XCode generator, which is + # subsequently executed by xcodebuild, ignores the linker flag, and thus the test + # seemingly succeeds. Explicitly disable the version script test on darwin platforms. + if(APPLE) + set(HAVE_LD_VERSION_SCRIPT OFF) + endif() + set(TEST_ld_version_script "${HAVE_LD_VERSION_SCRIPT}" CACHE INTERNAL "linker version script support") endfunction() -- cgit v1.2.3