chmod222 / libcmmk

An unofficial LED control API for Coolermaster Masterkey keyboards
GNU Lesser General Public License v3.0
100 stars 24 forks source link

Cmake error: install TARGETS given no RUNTIME DESTINATION #20

Closed grumble9684 closed 4 years ago

grumble9684 commented 4 years ago

So I copy all the commands from the README and this is what cmake says after cmake -DCMAKE_INSTALL_PREFIX=dist ..

CMake Error at test/CMakeLists.txt:21 (install): install TARGETS given no RUNTIME DESTINATION for executable target "cmmk-test".

Seems to be an issue with CMakeLists.txt

sam97 commented 4 years ago

I’m not well versed in this project, but it seems that the CMAKE_INSTALL_BINDIR may not be set. Can you try running cmake with --trace-expand- to confirm this?

If that is the case then maybe adding include(GNUInstallDirs) before line 21 in tests/CMakeLists.txt may help.