aboutsummaryrefslogtreecommitdiff
path: root/cmake/fetch-libfixmath.cmake
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-30 22:30:36 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-30 22:49:35 +0200
commitd55fb31e217adc1c1f6b5adca84b8ef6bd03ff00 (patch)
tree4552cd8705b723df6186370b08d128e0b8f049aa /cmake/fetch-libfixmath.cmake
parentc4a24800b8566b6e1a0f9888a184ee9e3d5864ac (diff)
downloadrts-d55fb31e217adc1c1f6b5adca84b8ef6bd03ff00.tar.gz
host.cmake, win9x.cmake: fetch libfixmath if missing
Diffstat (limited to 'cmake/fetch-libfixmath.cmake')
-rw-r--r--cmake/fetch-libfixmath.cmake8
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()