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

Stop using -H to configure projects #2292

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

friendlyanon
Copy link
Contributor

The -H flag is an undocumented feature that was never supposed to be
used by the public. This commit makes the drivers use the appropriate
methods of configuring depending on the CMake version they handle:

Legacy: The binary directory has to be created first and CMake must be
invoked with that folder as its working directory. The source directory
is passed without any flags.

ServerAPI: The binary directory was already ensured to exist. No changes
necessary.

FileAPI: The driver for this assumes CMake >= 3.15, so the -S and -B
flags can be used. These flags were introduced in CMake 3.13.

Fixes: #2053

This changes visible behavior

The -H flag is an undocumented feature that was never supposed to be
used by the public. This commit makes the drivers use the appropriate
methods of configuring depending on the CMake version they handle:

Legacy: The binary directory has to be created first and CMake must be
invoked with that folder as its working directory. The source directory
is passed without any flags.

ServerAPI: The binary directory was already ensured to exist. No changes
necessary.

FileAPI: The driver for this assumes CMake >= 3.15, so the -S and -B
flags can be used. These flags were introduced in CMake 3.13.

Fixes: microsoft#2053
@ghost
Copy link

ghost commented Dec 17, 2021

CLA assistant check
All CLA requirements met.

Copy link
Member

@bobbrow bobbrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bobbrow bobbrow added this to the 1.10.0 milestone Dec 20, 2021
@bobbrow bobbrow merged commit 2c181de into microsoft:main Dec 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmake -H to generate build files?
2 participants