GothenburgBitFactory / taskserver

Taskserver - Taskwarrior Synchronisation Server
Other
214 stars 38 forks source link

No SOURCES given to target: libshared #187

Closed stappersg closed 2 months ago

stappersg commented 2 years ago

Hello,

While building taskserver I encountered No SOURCES given to target: libshared. The message in context:

stappers@hc4:/usr/src/taskserver                                                           
$ cmake . -DCMAKE_BUILD_TYPE=Release                                                       
-- Configuring C++11                                                                       
-- System: Linux
-- Looking for SHA1 references
-- Found SHA1 reference: 7f41114
-- Looking for GnuTLS
-- Looking for libuuid
-- Found libuuid
-- Configuring cmake.h
-- Configuring man pages
CMake Deprecation Warning at test/CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0037 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Configuring done
CMake Error at src/CMakeLists.txt:23 (add_library):
  Cannot find source file:

    libshared/src/Color.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at src/CMakeLists.txt:23 (add_library):
  No SOURCES given to target: libshared

CMake Generate step failed.  Build files cannot be regenerated correctly.
stappers@hc4:/usr/src/taskserver
$ 

Where to get the libshared from?

stappersg commented 2 years ago

Ah, git modules ...

stappersg commented 2 years ago

With

git submodule init
git submodule update

screenshot version:

$ git submodule init
Submodule 'src/libshared' (https://github.com/GothenburgBitFactory/libshared) registered for path 'src/libshared'
stappers@hc4:/usr/src/taskserver
$ git submodule update
Submodule path 'src/libshared': checked out '1fa5dcbf53a280857e35436aef6beb6a37266e33'
stappers@hc4:/usr/src/taskserver
$

I got a clean cmake . -DCMAKE_BUILD_TYPE=Release.

Leaving this issue open for others after me that don't do git clone with submodules enabled.

lauft commented 2 months ago

[!IMPORTANT] Taskserver is only compatible with Taskwarrior 2.x, and is no longer actively developed. See man task-sync for task synchronization with Taskwarrior 3