host.cmake, win9x.cmake: fetch libfixmath if missing

This commit is contained in:
Xavier Del Campo Romero 2022-06-30 22:30:36 +02:00
parent c4a24800b8
commit d55fb31e21
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,8 @@
find_path(libfixmath "CMakeLists.txt"
PATHS "${PROJECT_SOURCE_DIR}/libfixmath/"
NO_DEFAULT_PATH)
if(${libfixmath} STREQUAL "libfixmath-NOTFOUND")
message(STATUS "Fetching submodules...")
execute_process(COMMAND git submodule update --init --recursive)
endif()

View File

@ -9,4 +9,5 @@ else()
set(cflags ${cflags} -O3)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/fetch-libfixmath.cmake")
add_subdirectory(libfixmath)

View File

@ -34,4 +34,5 @@ else()
set(cflags ${cflags} -O2)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/fetch-libfixmath.cmake")
add_subdirectory(libfixmath)