-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[install] MAKEFLAGS not propagated from toplevel Makefile to CMake generated makefiles #804
Comments
Yeah the toplevel makefile is just for convenience so people don't have to type whole cmake & make commands. It sounds like a good addition to update the propagation of the variable from the toplevel makefile. You may proved a pull-request for this if you want. |
@Jochen0x90h and how exactly do you suggest to pass cmake variables, such as DCMAKE_INSTALL_PREFIX, via the top level Makefile? As @xor-gate said, this top level Makefile is just for convenience, not for fine control over the build process. It automates the process for general cases, it wasn't intended for specific ones like yours. If you want granularity control over what cmake will do, you should run it yourself with the desired flags. I do agree though that the top level Makefile could have the install and uninstall targets. But even this small change must be analyzed carefully. I.e., if I type
would always install the Release build, but what if the person compiled the Debug one with |
I think you may not get an answer from Jochen0x90h as he no longer has a fork of this project. |
@xor-gate: To me this appears to be a valuable addition to the tools under the circumstance that there really is a way to make cmake accept (:laughing:) such commands from the toplevel makefile. Do we have anybody here who is a kind of expert on this topic and can help out with a minor tweak? |
@chenguokai: There is currently some refactoring on the way to improve the cmake compilation in a few parts. I'll upload this to a separate branch ( |
I added a pull request to the build-settings branch |
In the toplevel Makefile, the varialbe MAKEFLAGS gets assigned but is not used. Only CMAKEFLAGS is used but not assigned somewhere. Seems to be a minor thing but I'd like to add -DCMAKE_INSTALL_PREFIX="${HOME}/.local" to this variable
I also added an install target
install: build/Release
@$(MAKE) -C build/Release install
Now I can simply type make install
The text was updated successfully, but these errors were encountered: