Skip to content

Commit

Permalink
change cmake for miniz when my cmake clones it... lol
Browse files Browse the repository at this point in the history
  • Loading branch information
noisecode3 committed Dec 21, 2024
1 parent 2b35b48 commit db50473
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if(NOT EXISTS "${CMAKE_SOURCE_DIR}/libs/miniz/CMakeLists.txt")
COMMAND git submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
file(READ "${CMAKE_SOURCE_DIR}/libs/miniz/CMakeLists.txt" cmake)
string(REPLACE "cmake_minimum_required(VERSION 3.5)"
"cmake_minimum_required(VERSION 3.16)" my_cmake "${cmake}")
file(WRITE "${CMAKE_SOURCE_DIR}/libs/miniz/CMakeLists.txt" "${my_cmake}")
endif()

# Update submodules if we forget
Expand Down

0 comments on commit db50473

Please sign in to comment.