My attempt to configure a CMake project fails due to the following:
CMake Error at CMakeLists.txt:42 (install):
install FILES given directory
"/home/steve/udunits2/build/lib/udunits2lib.html" to install.
Call Stack (most recent call first):
lib/CMakeLists.txt:47 (texi_doc)
Line 42 in the top-level CMakeLists.txt file is
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${file}.html" DESTINATION ${CMAKE_INSTALL_DOCDIR})
and is part of a function for building .info and .html files from .texi input and installing them. ${CMAKE_INSTALL_DOCDIR} is "share/doc/udunits".
What does this error-message mean and how do I fix the problem?
The source-code indicates that the error message means that the FILES argument of the install() command is a directory and not the expected regular file. The reason the output .html "file" is a directory is because I didn't initially use the --no-split option of makeinfo(1).
My bad.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With