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

Move away from M4 file generation #1950

Closed
ibaned opened this issue Feb 23, 2021 · 2 comments
Closed

Move away from M4 file generation #1950

ibaned opened this issue Feb 23, 2021 · 2 comments

Comments

@ibaned
Copy link
Contributor

ibaned commented Feb 23, 2021

M4 is common on Linux systems but not so much on Windows. Is it possible to use something more portable, like CMake file configuration and C preprocessor macros to generate the source files that are right now generated by M4?

@WardF
Copy link
Member

WardF commented Feb 23, 2021

Yes, and in fact we provide the CMakeconfig.txt files in parallel with the gnu autotools-based configuration files, so that we might compile on Windows as well as *nix :). Thanks!

@WardF WardF closed this as completed Feb 23, 2021
@ibaned
Copy link
Contributor Author

ibaned commented Feb 23, 2021

I'm aware of the provided support for CMake. My problem is much more specific to basically trying to build non-release versions of netcdf on Windows. In particular, files like libsrc/attr.c don't exist in non-release versions, and CMake can't generate them on Windows. Right now I'll try to get the files from release versions and combine them with other fixes, but the issue remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants