jketterl / digiham

tools for decoding digital ham communication
GNU General Public License v3.0
46 stars 14 forks source link

CMake Error at CMakeLists.txt:47 (set_target_properties): #9

Closed ambanmba closed 1 year ago

ambanmba commented 1 year ago

I'm getting this at the cmake .. step

CMake Error at CMakeLists.txt:47 (set_target_properties):
  set_target_properties called with incorrect number of arguments.
jketterl commented 1 year ago

The error message suggests that ${PROJECT_VERSION} is empty, however since this is an internal variable provided by cmake itself it should be guaranteed to be available...

What is your cmake version?

ambanmba commented 1 year ago

cmake version 3.18.4

When I try to update I get: cmake is already the newest version (3.18.4-2+rpt1+rpi1+deb11u1).

jketterl commented 1 year ago

I just tried to reproduce this on Debian Bullseye (which seems to contain that specific version of cmake) and I get no errors.

Please make sure you run the build in the root directory of the checkout. I do get the error message you have (along with a number of other warnings) when I attempt to build from the src directory.

ambanmba commented 1 year ago

🤦‍♂️ Yes, it was user error. I was not in the root directory.

It works fine from the root directory of the checkout.