host.cmake, win9x.cmake: fetch libfixmath if missing
This commit is contained in:
parent
c4a24800b8
commit
d55fb31e21
|
@ -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()
|
|
@ -9,4 +9,5 @@ else()
|
|||
set(cflags ${cflags} -O3)
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/fetch-libfixmath.cmake")
|
||||
add_subdirectory(libfixmath)
|
||||
|
|
|
@ -34,4 +34,5 @@ else()
|
|||
set(cflags ${cflags} -O2)
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/fetch-libfixmath.cmake")
|
||||
add_subdirectory(libfixmath)
|
||||
|
|
Loading…
Reference in New Issue