aboutsummaryrefslogtreecommitdiff
path: root/cmake/fetch-libfixmath.cmake
blob: 6137dd5d3401923de8ae0463cf918f71488218f5 (plain) (blame)
1
2
3
4
5
6
7
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()