Open simonbyrne opened 2 years ago
Odd. The file "config.h.cmake" doesn't exist. The file "config-cmake.h" does, however, and should be in the distribution. Is it?
No, I don't see that either.
@simonbyrne What's the "CONFIGURE_FILE" directive in your "CMakeLists.txt" file?
It's the same as in the repository: https://github.com/Unidata/UDUNITS-2/blob/c83da987387db1174cd2266b73dd5dd556f4476b/CMakeLists.txt#L206-L208
@simonbyrne Looks like I mistakenly left it out of the distribution (I'm still getting used to CMake). Here's what it should contain
/*
* C macros set by cmake(1)
*/
#define DEFAULT_UDUNITS2_XML_PATH "@DEFAULT_UDUNITS2_XML_PATH@"
#cmakedefine DLL_UDUNITS2
#cmakedefine DLL_EXPORT
#cmakedefine HAVE_UNISTD_H
#cmakedefine YY_NO_UNISTD_H
Try this and let me know.
Thanks, I ended up using the .zip
archive, which the necessary files, see https://github.com/JuliaPackaging/Yggdrasil/pull/4232
Attempting to build with cmake using the .tar.gz archive (https://artifacts.unidata.ucar.edu/repository/downloads-udunits/udunits-2.2.28.tar.gz) results in the following error:
The file does appear in the .zip archive however (https://artifacts.unidata.ucar.edu/repository/downloads-udunits/udunits-2.2.28.zip)