CMake: Make sure the strip_for_binary project works with Makefiles

The printed lib path did not appear when building the project with the
Unix Makefiles generator.

Make sure the printing does not depend on the shell used by the
generator, by making it VERBATIM.

Amends 39f657032b5e65bfcb93472201f6607c0388ba37

Task-number: QTBUG-101653
Change-Id: I3853bbed3b121ecdc8b2e9da42eb3399f347b8c2
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit d26c1ba4de820f8c56088d1d156b6780ce30d82d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexandru Croitor 2022-03-31 12:07:01 +02:00 committed by Qt Cherry-pick Bot
parent 9876e1cfcd
commit 335eb333de

View File

@ -4,5 +4,6 @@ add_library(lib1 SHARED lib1.cpp)
add_custom_target(print_lib_path ALL
COMMAND ${CMAKE_COMMAND} -E echo "###$<TARGET_FILE:lib1>###"
VERBATIM
)
add_dependencies(print_lib_path lib1)