aboutsummaryrefslogtreecommitdiff
path: root/primedev/cmake/utils.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/cmake/utils.cmake')
-rw-r--r--primedev/cmake/utils.cmake18
1 files changed, 12 insertions, 6 deletions
diff --git a/primedev/cmake/utils.cmake b/primedev/cmake/utils.cmake
index 0255569f..80a2288d 100644
--- a/primedev/cmake/utils.cmake
+++ b/primedev/cmake/utils.cmake
@@ -3,17 +3,21 @@ function(check_init_submodule path)
file(
GLOB
DIR_CONTENT
- "${path}/*")
+ "${path}/*"
+ )
list(
LENGTH
DIR_CONTENT
- CONTENT_COUNT)
+ CONTENT_COUNT
+ )
if(CONTENT_COUNT
EQUAL
- 0)
+ 0
+ )
if(NOT
EXISTS
- "${PROJECT_SOURCE_DIR}/.git")
+ "${PROJECT_SOURCE_DIR}/.git"
+ )
message(FATAL_ERROR "Failed to find third party dependency in '${path}'")
endif()
@@ -26,12 +30,14 @@ function(check_init_submodule path)
execute_process(
COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- RESULT_VARIABLE GIT_SUBMOD_RESULT)
+ RESULT_VARIABLE GIT_SUBMOD_RESULT
+ )
if(NOT
GIT_SUBMOD_RESULT
EQUAL
- "0")
+ "0"
+ )
message(FATAL_ERROR "Initializing Git submodules failed with ${GIT_SUBMOD_RESULT}")
endif()
endif()