eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.16k stars 461 forks source link

[Bug]: compilation aborted due to problems with cmake version #3492

Closed pdenapo closed 1 month ago

pdenapo commented 1 month ago

What happened?

I have tried to compile codelite from the sources, following the instructions at BuildInfo.txt

The compilation was aborted due to a problem with the cmake version.

I'm using arch Linux and cmake 3.30.5 (which is the latest release)

Note: the file

/home/pablo/git-repos/codelite/submodules/cc-wrapper/CMakeLists.txt

does exists, but CMake says it does not!

Version

Self compiled

Operating system

Linux

Steps to reproduce

1. clone the repostiory
2.  git submodule update --ini
3. mkdir build-release
4.  cd build-release
5.  cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..

Relevant log output

Make Error at submodules/cc-wrapper/CMakeLists.txt:11 (add_subdirectory):
  The source directory

    /home/pablo/git-repos/codelite/submodules/cc-wrapper/tinyjson

  does not contain a CMakeLists.txt file.

CMake Deprecation Warning at cmake/Modules/OSXInstall.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  cmake/Modules/UtilsHelper.cmake:5 (include)
  LiteEditor/CMakeLists.txt:8 (include)

-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to /home/pablo/git-repos/codelite
-- CL_INSTALL_BIN is set to /usr/bin
-- Configuring incomplete, errors occurred!
pdenapo commented 1 month ago

It seems that is has nothing to do with the cmake warning!

It is important to clone the repository with --recurse-submodules.