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.
This commit is contained in:
Hennadii Stepanov
2025-01-23 15:38:36 +00:00
parent 65a0920ca6
commit 81c174e318

View File

@@ -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()