Skip to content

Minor fix to the CMake config, ignored Mac gunk. #10

Minor fix to the CMake config, ignored Mac gunk.

Minor fix to the CMake config, ignored Mac gunk. #10

on:
push:
branches:
- master
pull_request:
name: Check CMake install
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Configure the build
run: cmake -S . -B build -DIRLBA_TESTS=OFF
- name: Install the library
run: sudo cmake --install build
- name: Test downstream usage
run: |
mkdir _downstream
touch _downstream/source.cpp
cat << EOF > _downstream/CMakeLists.txt
cmake_minimum_required(VERSION 3.24)
project(test_install)
add_executable(whee source.cpp)
find_package(ltla_irlba)
target_link_libraries(whee ltla::irlba)
EOF
cd _downstream && cmake -S . -B build