Skip to content

Commit

Permalink
🔧 Removed hardcoded install dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Mar 16, 2024
1 parent 81d407f commit 2c670ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-game.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Build
run: |
conan install . -b missing -pr:b=tools/conan-profiles/vs-22-release-ninja -pr=tools/conan-profiles/vs-22-release-ninja
cmake --preset conan-release -DBUILD_TEST=ON
cmake --preset conan-release -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX=redist
ninja
- name: Test
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
- name: Configure
run: |
conan install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja"
cmake --preset conan-release
cmake --preset conan-release -DCMAKE_INSTALL_PREFIX=redist
- name: Build
run: |
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
run: |
conan profile detect --force
conan install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja"
cmake --preset conan-release
cmake --preset conan-release -DCMAKE_INSTALL_PREFIX=redist
ninja
mkdir -p bin/Cytopia.App/Resources/resources
cp -pR data/resources bin/Cytopia.App/Contents/Resources/
Expand Down
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ include(CpackConfiguration)
# Compile options
include(CompileOptions)

# set install dir here for convenience
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/redist")

message(STATUS "Building Project: ${PROJECT_NAME}")
message(STATUS "Build configuration: " ${CMAKE_BUILD_TYPE})

Expand Down

0 comments on commit 2c670ec

Please sign in to comment.