diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 194094b..287075f 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -55,10 +55,16 @@ jobs: run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - - name: Install dependencies + - name: Install dependencies (Linux) if: runner.os == 'Linux' run: sudo apt-get install -y libfmt-dev clang-tidy clang-format cmake-format cppcheck iwyu + - name: Install dependencies (Windows) + if: runner.os == 'Windows' + run: | + vcpkg install fmt + vcpkg integrate install + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type @@ -70,6 +76,7 @@ jobs: -DENABLE_FORMATTERS=ON -DENABLE_SANITIZERS=ON -DENABLE_FMTLIB=${{ matrix.format_lib == 'fmtlib' && 'ON' || 'OFF' }} + -DCMAKE_TOOLCHAIN_FILE=$Env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -S ${{ github.workspace }} - name: Check formatting diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b7a9fe..3e726a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required(VERSION 3.15) + project( "plaincloud" VERSION 0.1.0 @@ -27,6 +28,8 @@ set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTOR include(FeatureSummary) include(Helpers) +message(WARNING "FMT TOOLCHAIN: ${CMAKE_TOOLCHAIN_FILE}") + # Option for enabling / disabling code formatters option(ENABLE_FORMATTERS "Code formatters" OFF) add_feature_info("CodeFormatting" ENABLE_FORMATTERS "formatting and checking code style")