-
Notifications
You must be signed in to change notification settings - Fork 163
Refactor configuration macros #685
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
Conversation
including the macros related to the depredated API
to prevent ever erroneously passing the compile-time configuration as macros rather than cmake variables/options
TODO:
|
@otbrown What do you think about this PR, to replace PR #656? Here, I remove all macros from the compiler flags being passed to the QuEST source. They are replaced with cmake options passed to It's worth checking whether I broke installation. I removed the cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
make install I note it writes the headers to
where I also note instead performing cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
cmake --install . produces error
but I don't really understand what I'm doing since I never install Let me know what you think! |
Btw, I note cmake .. -DVERBOSE_LIB_NAME=ON
make install outputs...
which was also the case before this PR (on Is |
after manually verifying various compilation configs succeed on MacOS and linux
since it cannot actually be disabled without breaking QuEST source compilation
Hi Tyson, LGTM! I can confirm you didn't break installation -- your test didn't work as setting the install prefix to the build directory is... unexpected. My install directory looks like:
which is as expected. The slightly upsetting |
Oh! And the config file naming -- that file shouldn't be renamed as then everything else would need to We probably can get it to work such that config headers are distinguished by name, but I would like an actual use-case to be presented before putting the work in as I think the solution would be ugly 😅 |
Wew brilliant, thanks very much! 🎉
Aha! Truly I am always bitten by my own previous stubbornness ehehe |
Supersedes #656