File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,8 +148,10 @@ jobs:
148148 git am ../../../../patches/FNA3D_ExclusiveFullscreen.patch
149149 git am ../../../../patches/FNA3D_Headless.patch
150150
151- # Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
152- sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
151+ if [ "x${{ runner.os }}" = "xWindows" ]; then
152+ # Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
153+ sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
154+ fi
153155
154156 cd MojoShader
155157 git am ../../../../../patches/MojoShader_Headless.patch
@@ -172,8 +174,10 @@ jobs:
172174 - name : Patch FAudio
173175 working-directory : source/FNA/lib/FAudio
174176 run : |
175- # Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
176- sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
177+ if [ "x${{ runner.os }}" = "xWindows" ]; then
178+ # Update CMake to use CMAKE_MSVC_RUNTIME_LIBRARY
179+ sed -i 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.16)/' CMakeLists.txt
180+ fi
177181
178182 - name : Configure FAudio
179183 working-directory : source/FNA/lib/FAudio
You can’t perform that action at this time.
0 commit comments