Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
modules: Fix test command when library output path is set #77
Hi @mosra !
This is a tiny one, but would help me with maintenance a bit if it were to be upstreamed :)
From the commit message:
E.g. when `LIBRARY_OUTPUT_PATH` is set globally or the target property `LIBRARY_OUTPUT_DIRECTORY` is set. add_test(<name> <command> <args>) does not resolve the target file, but rather just runs the command, which works as long as it is where cmake puts in by default, but not if the library output dir is modified. add_test(NAME <name> COMMAND <command> <args>) on the other hand resolves generator expressions and <command>, if an executable target, will "automatically be replaced by the location of the executable created at build time." (from the cmake docs.) Signed-off-by: Squareys <email@example.com>
@@ Coverage Diff @@ ## master #77 +/- ## ======================================= Coverage 97.76% 97.76% ======================================= Files 86 86 Lines 5732 5732 ======================================= Hits 5604 5604 Misses 128 128