-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[C++] do not hardcode Unix Makefiles generator #2745
Conversation
Sorry for the lack of Jira issue. I'm not sure how to create one. Also I tested this at least locally, and all the affected targets work fine for me. Please tell me if this breaks anything for you (it shouldn't though) |
@@ -71,7 +71,6 @@ function do_dist() { | |||
fi | |||
} | |||
|
|||
(mkdir -p build; cd build; cmake --version; cmake -G "Unix Makefiles" ..) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The clean
target fails if another target that creates the build/
folder is not executed first.
avro/lang/c++ on mkmkme/no-make [$?] via △ v3.22.1
❯ ./build.sh clean
Error: /home/martin/git/apache/avro/lang/c++/build is not a directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah true! Thanks, I'll fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a configuration step before the loop
Instead, use `cmake --build`. It has been mentioned at least in cmake 3.2 documentation [1] which has been released in 2015. This will make a build process more flexible to people who want to use different build systems such as Ninja. [1]: https://cmake.org/cmake/help/v3.2/manual/cmake.1.html
0eae62c
to
6f977a7
Compare
Instead, use `cmake --build`. It has been mentioned at least in cmake 3.2 documentation [1] which has been released in 2015. This will make a build process more flexible to people who want to use different build systems such as Ninja. [1]: https://cmake.org/cmake/help/v3.2/manual/cmake.1.html (cherry picked from commit c66e8ca)
Thank you, @mkmkme ! |
Instead, use `cmake --build`. It has been mentioned at least in cmake 3.2 documentation [1] which has been released in 2015. This will make a build process more flexible to people who want to use different build systems such as Ninja. [1]: https://cmake.org/cmake/help/v3.2/manual/cmake.1.html
Instead, use
cmake --build
. It has been mentioned at least in cmake 3.2 documentation 1 which has been released in 2015. This will make a build process more flexible to people who want to use different build systems such as Ninja.What is the purpose of the change
This change makes the build process slightly more flexible to people who use different build systems.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Documentation