This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Rich, I've run into a CMake problem. I have the following in my CMakeLists.txt file: FILE(TO_NATIVE_PATH "/share/udunits/udunits2.xml" tmp) MESSAGE("FILE(TO_NATIVE_PATH /share/udunits/udunits2.xml) = \"${tmp}\"") When the above is executed on my Windows 8 VM, it prints FILE(TO_NATIVE_PATH /share/udunits/udunits2.xml) = "/share/udunits/udunits2.xml" which is not a Windows pathname. As a consequence, the UDUNITS2 database can't be opened; otherwise, the package works fine :-) Can you pass this on to your CMake contact. Regards, Steve Emmerson Ticket Details =================== Ticket ID: WUT-401493 Department: Support UDUNITS Priority: Critical Status: Closed