Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Sep 28, 2024
1 parent 512535d commit 7283354
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.30)
cmake_minimum_required(VERSION 3.29)

# CMAKE
# apt install build-essential git
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/BaseConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.30)
cmake_minimum_required(VERSION 3.29)

# *****************************************************************************
# CMake Features
Expand Down
14 changes: 13 additions & 1 deletion qodana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,30 @@ bootstrap: |
set -e
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get purge -y libclang*
sudo apt-get install -y cmake git unzip build-essential ca-certificates curl zip unzip tar pkg-config ninja-build autoconf automake libtool python3
sudo apt-get install -y git unzip build-essential ca-certificates curl zip tar pkg-config ninja-build autoconf automake libtool python3
CMAKE_VERSION=3.29.2
cd ~
wget https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION.tar.gz
tar -xzvf cmake-$CMAKE_VERSION.tar.gz
cd cmake-$CMAKE_VERSION
./bootstrap -- -DCMAKE_USE_OPENSSL=OFF
make -j$(nproc)
sudo make install
cd ~
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
cd /data/project
rm -rf build
mkdir -p build
cd build
export CC=/usr/bin/cc
export CXX=/usr/bin/c++
cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake .. --preset linux-debug || true
sudo apt-get install -y clang-16 clang-format-16 clang-tidy-16 clang-tools-16 libclang-common-16-dev libclang-cpp16 libclang-rt-16-dev libclang1-16 llvm-16-dev
Expand Down
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.30)

# Base configurations and settings for the project
include(BaseConfig)
include(GNUInstallDirs)
Expand Down

0 comments on commit 7283354

Please sign in to comment.