File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 4.3.0 )
1+ cmake_minimum_required (VERSION 3.20 )
22project (physics_engine CXX )
33
4- set (CMAKE_CXX_STANDARD 11 )
4+ set (CMAKE_CXX_STANDARD 17 )
55set (CMAKE_CXX_STANDARD_REQUIRED ON )
66
77# Adding Raylib
88include (FetchContent )
99set (FETCHCONTENT_QUIET FALSE )
1010set (BUILD_EXAMPLES OFF CACHE BOOL "" FORCE ) # don't build the supplied examples
1111set (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
1518FetchContent_Declare (
1619 raylib
You can’t perform that action at this time.
0 commit comments