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 Pick-to: 6.2 6.3 Task-number: QTBUG-101653 Change-Id: I3853bbed3b121ecdc8b2e9da42eb3399f347b8c2 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
7694b01aaf
commit
d26c1ba4de
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user