diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39d00e3..7cc7dcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: mkdir build && cd build cmake -G "Xcode" .. - name: Build - run: cmake --build build --target sdl-min --config Release + run: cmake --build build --target install --config Release - name: Create DMG run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index ecaf402..65095bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,9 @@ cmake_minimum_required(VERSION 3.16) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$) +# prevent installing to system directories. +set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR} CACHE INTERNAL "") + # Declare the project project(sdl-min)