-
Notifications
You must be signed in to change notification settings - Fork 24
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
Generate config.h in build directory not in source #88
Generate config.h in build directory not in source #88
Conversation
config.h in source directory is not convenient for multiple builds on same source and when updating using VCS
Hi @hpwxf, happy to make the change regarding the installation on the config header but I want to retain a default version of the header in carma_bits because otherwise the lib is dependent on CMake and not really header only. Someone opened an issue on this a while ago. |
Ok, I understand. I could do a workaround where there is default
What do you think about it? |
Default config.h can be used for header only configuration. It switches to a config file generated by CMake in build directory if available.
I have updated my PR branch using this idea. |
Hi @hpwxf, thanks for the updated PR. Sorry, I've been on holiday and haven't been able to pick this up. What about setting a definition through CMake and having something like the below in
|
Thank you for
Sorry, I was also far far away. |
Generating
config.h
in source directory is not convenient for multiple builds on the same sources and when updating using VCSI suggest generating it into the binary directory and to add it to include search path.