diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-30 22:30:36 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-30 22:49:35 +0200 |
| commit | 1a67c196a5c3eb604dc3a174b78b0c996e17f4a7 (patch) | |
| tree | 30b26003cbc6a3346a8071d878e5941a744b0af3 /cmake/fetch-libfixmath.cmake | |
| parent | e5bbfc6dc49efac525fed276cd734392575616f7 (diff) | |
| download | jancity-1a67c196a5c3eb604dc3a174b78b0c996e17f4a7.tar.gz | |
host.cmake, win9x.cmake: fetch libfixmath if missing
Diffstat (limited to 'cmake/fetch-libfixmath.cmake')
| -rw-r--r-- | cmake/fetch-libfixmath.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/fetch-libfixmath.cmake b/cmake/fetch-libfixmath.cmake new file mode 100644 index 0000000..6137dd5 --- /dev/null +++ b/cmake/fetch-libfixmath.cmake @@ -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() |
