Skip to content

Commit f6c091d

Browse files
authored
Merge pull request #1 from crux-bphc/configure-actions
Configure actions
2 parents 514eca6 + 792c45d commit f6c091d

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/cmake_compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v5
16-
16+
1717
- name: Install Raylib Dependencies
1818
run: |
1919
sudo apt-get update

CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
cmake_minimum_required(VERSION 4.3.0)
1+
cmake_minimum_required(VERSION 3.20)
22
project(physics_engine CXX)
33

4-
set(CMAKE_CXX_STANDARD 11)
4+
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66

77
# Adding Raylib
88
include(FetchContent)
99
set(FETCHCONTENT_QUIET FALSE)
1010
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
1111
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # don't build the supplied example games
12-
set(GLFW_BUILD_WAYLAND ON CACHE BOOL "" FORCE) # enable wayland on linux
13-
set(GLFW_BUILD_X11 OFF CACHE BOOL "" FORCE) # disable x11 on linux
12+
13+
if(UNIX AND NOT APPLE)
14+
set(GLFW_BUILD_WAYLAND ON CACHE BOOL "" FORCE)
15+
set(GLFW_BUILD_X11 ON CACHE BOOL "" FORCE)
16+
endif()
1417

1518
FetchContent_Declare(
1619
raylib

0 commit comments

Comments
 (0)