Skip to content

Commit 81c174e

Browse files
committed
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.
1 parent 65a0920 commit 81c174e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/module/CheckLinkerSupportsPIE.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function(check_linker_supports_pie warnings)
2121
set(CMAKE_POSITION_INDEPENDENT_CODE ON PARENT_SCOPE)
2222
elseif(NOT WIN32)
2323
# The warning is superfluous for Windows.
24-
message(WARNING "PIE is not supported at link time: ${output}")
24+
message(WARNING "PIE is not supported at link time. See the configure log for details.")
2525
set(${warnings} ${${warnings}} "Position independent code disabled." PARENT_SCOPE)
2626
endif()
2727
endfunction()

0 commit comments

Comments
 (0)