petrovvlad / freeLib

freeLib - каталогизатор для библиотек LibRusEc и Flibusta
GNU General Public License v3.0
101 stars 28 forks source link

Can not build with cmake 3.25.1 #126

Open andrei-trybukhouski opened 1 year ago

andrei-trybukhouski commented 1 year ago

help wanted) can't build with the commands provided ( docker with debian 12 )

root@6df71e0fdb5b:/generic_cpp/freeLib/build# cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. && cmake --build . -j2
CMake Warning:
  Ignoring extra path from command line:

   ".."

CMake Error: The source directory "/generic_cpp/freeLib" does not appear to contain CMakeLists.txt.

tried to run from the src dir, got enother error

root@6df71e0fdb5b:/generic_cpp/freeLib/src/build# cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -S .. && cmake --build . -j2

CMake Error at CMakeLists.txt:135 (set_target_properties):
  set_target_properties called with incorrect number of arguments.

CMake Error in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.25)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".

-- Configuring incomplete, errors occurred!
petrovvlad commented 1 year ago

Check if the CMakeLists.txt is in the "/generic_cpp/freeLib". It should be there.