ycm-cmake-modules icon indicating copy to clipboard operation
ycm-cmake-modules copied to clipboard

Unable to determine default `CMAKE_INSTALL_LIBDIR` on Ubuntu 2022.04

Open pattacini opened this issue 2 years ago • 3 comments

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.

pattacini avatar Apr 27 '22 12:04 pattacini

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

traversaro avatar Apr 27 '22 17:04 traversaro

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

pattacini avatar Apr 28 '22 06:04 pattacini

Yes, thanks. I fixed it.

traversaro avatar Apr 28 '22 07:04 traversaro