-
Notifications
You must be signed in to change notification settings - Fork 262
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
Fix out-of-tree builds generating netcdf_json.h and netcdf_proplist.h #3060
base: main
Are you sure you want to change the base?
Conversation
I rebuilt these constructions as` part of my repo:
Any chance you can look to see if my version solves your problem? |
To simplify my query. Here is the Automake code for building netcdf_json.h and netcdf_proplist.h
and the same code for CMakeLists.txt.
|
I would argue that you shouldn't be modifying anything in ${srcdir}, and instead use ${builddir}. This is what the cmake code is doing when it specifies ${CMAKE_CURRENT_BINARY_DIR}. |
Also added a fix for another out-of-tree build issue with a test. |
I see. And you are correct. |
Without this,
build/include/netcdf_json.h
andbuild/include_netcdf_proplist.h
simply contain the initial#ifdev
line.