robotology / ycm-cmake-modules

YCM (YCM CMake modules) is a collection of various useful CMake modules.
http://robotology.github.io/ycm-cmake-modules
Other
50 stars 22 forks source link

Unable to determine default `CMAKE_INSTALL_LIBDIR` on Ubuntu 2022.04 #409

Open pattacini opened 2 years ago

pattacini commented 2 years ago

Just got the following warning:

-- YCM Version: 0.14.0 (0.14.0)
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/GNUInstallDirs.cmake:239 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  CMakeLists.txt:29 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
traversaro commented 2 years ago

Upstream issue: https://gitlab.kitware.com/cmake/cmake/-/issues/23461 .

pattacini commented 2 years ago

Maybe a typo in the link above @traversaro ? It points to this same issue.

traversaro commented 2 years ago

Yes, thanks. I fixed it.