Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass target names directly to make #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

otreblan
Copy link

Since 3.20 CMake errors out on unknown command line arguments or missing values.
https://gitlab.kitware.com/cmake/cmake/-/commit/1b6c5333a0b4a56eaf8b010084e18a40e473c2e3.

Calling :Make no longer works when no targets are specified.

|| CMake Error: Invalid value used with --target
|| Usage: cmake --build [<dir> | --preset <preset>] [options] [-- [native-options]]
|| Options:
||   <dir>          = Project binary directory to be built.
||   --preset <preset>, --preset=<preset>
||                  = Specify a build preset.
||   --list-presets
||                  = List available build presets.
||   --parallel [<jobs>], -j [<jobs>]
||                  = Build in parallel using the given number of jobs. 
||                    If <jobs> is omitted the native build tool's 
||                    default number is used.
||                    The CMAKE_BUILD_PARALLEL_LEVEL environment variable
||                    specifies a default parallel level when this option
||                    is not given.
||   --target <tgt>..., -t <tgt>... 
||                  = Build <tgt> instead of default targets.
||   --config <cfg> = For multi-configuration tools, choose <cfg>.
||   --clean-first  = Build target 'clean' first, then build.
||                    (To clean only, use --target 'clean'.)
||   --verbose, -v  = Enable verbose output - if supported - including
||                    the build commands to be executed. 
||   --             = Pass remaining options to the native tool.

@Ryp
Copy link

Ryp commented Jun 15, 2021

Please have a look at this, it's a blocker bug for users of reasonably recent CMake!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants