From 81c174e3186efae084829dcde314b081cad3d3cb Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:38:36 +0000 Subject: [PATCH] cmake: Refer to the configure log instead of printing PIE test error This change improves the user experience on systems where the toolchain does not support PIE. --- cmake/module/CheckLinkerSupportsPIE.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/module/CheckLinkerSupportsPIE.cmake b/cmake/module/CheckLinkerSupportsPIE.cmake index 6551033c1c9..f3897e56a9a 100644 --- a/cmake/module/CheckLinkerSupportsPIE.cmake +++ b/cmake/module/CheckLinkerSupportsPIE.cmake @@ -21,7 +21,7 @@ function(check_linker_supports_pie warnings) set(CMAKE_POSITION_INDEPENDENT_CODE ON PARENT_SCOPE) elseif(NOT WIN32) # The warning is superfluous for Windows. - message(WARNING "PIE is not supported at link time: ${output}") + message(WARNING "PIE is not supported at link time. See the configure log for details.") set(${warnings} ${${warnings}} "Position independent code disabled." PARENT_SCOPE) endif() endfunction()