go2sh / cmake-integration-vscode

CMake Server Interface for VSCode.
https://go2sh.github.io/cmake-integration-vscode/
Other
19 stars 11 forks source link

Doesn't find default_target in Makefile #19

Closed johschmitz closed 5 years ago

johschmitz commented 5 years ago

This extension seems to be unable to find the default target. My CMake generated Makefile begins like this:

# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.10

# Default target executed when no arguments are given to make.
default_target: all

.PHONY : default_target

However the default target (all) is not available in the status bar menu of the extension.

go2sh commented 5 years ago

Yes, there is a special command for building all. Search for 'Build current project' to build all targets in a project.

With the Makefile generator, CMake doesn't report the all target.

johschmitz commented 5 years ago

Could that be added to the status bar selection as a special target so one can execute it by pressing F7? Actually it should be some kind of default when pressing F7 I think, because in most CMake projects one just calls a simple make to build it.

Christoph Seitz notifications@github.com schrieb am Sa., 27. Apr. 2019, 10:58:

Yes, there is a special command for building all. Search for 'Build current project' to build all targets in a project.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/go2sh/cmake-integration-vscode/issues/19#issuecomment-487268820, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF4PC6EGFUXJV3PTOS5WVTPSQISNANCNFSM4HI2UDHA .

go2sh commented 5 years ago

Hey, I think about adding it. In the mean time, you can change your keybindigns or use Shift + F7, which is build all.

go2sh commented 5 years ago

I added the all target to the list in the status bar.