Skip to content

Commit

Permalink
exclude imported targets when trying to find the executable to run
Browse files Browse the repository at this point in the history
  • Loading branch information
andystanton committed Dec 27, 2024
1 parent 1852ab9 commit 18dbe88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ run: build
@app_name=$$(cmake -S . -B "$(build_path)" --trace 2>&1 \
| egrep -i add_executable \
| egrep -v -i '^CMake Warning ' \
| egrep -v -i 'IMPORTED \)$$' \
| sort -r \
| head -n 1 \
| sed -E 's/.*add_executable.[[:space:]]*([A-Za-z0-9\\"_\.+-]+)[[:space:]].*/\1/'); \
Expand Down

0 comments on commit 18dbe88

Please sign in to comment.