Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the CMake error-message "install FILES given directory" mean?

Tags:

cmake

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?

like image 442
Steve Emmerson Avatar asked Oct 20 '25 17:10

Steve Emmerson


1 Answers

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.

like image 130
Steve Emmerson Avatar answered Oct 23 '25 07:10

Steve Emmerson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!