OpenPHDGuiding / phd2

PHD2 Guiding
https://openphdguiding.org
BSD 3-Clause "New" or "Revised" License
244 stars 111 forks source link

compilation issue when using custom args #1181

Closed MattBlack85 closed 3 months ago

MattBlack85 commented 3 months ago

Hi,

I just noticed that when building phd2, libusb and indi are built in the process instead of using the system ones.

I am now try to override those forcing the system one but it seems I am missing something.

Before that I was just doing

mkdir build
cd build
cmake ../phd2

Now I am adding a few more opts

mkdir build
cd build
cmake -DUSE_SYSTEM_LIBINDI=ON ../phd2

but I get the following error

CMake Error at CMakeLists.txt:771 (add_dependencies):
  add_dependencies called with incorrect number of arguments

what else should I pass to cmake to make it happy?

I am using the 2.6.13dev1 tag to pull the code, the flags are correctly parsed, I can see the values I desire in CMakeCache.txt

MattBlack85 commented 3 months ago

fixed on master and in 2.6.13dev2, closing