Skip to content

Commit 6821dea

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b807fdf commit 6821dea

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010

1111
cmake_minimum_required(VERSION 3.16)
1212

13-
option(
14-
KDUTILS_USE_EXTERNAL_DEPENDENCIES
15-
"Assume all project dependencies are available on the system. Don't fetch through vcpkg."
16-
OFF
13+
option(KDUTILS_USE_EXTERNAL_DEPENDENCIES
14+
"Assume all project dependencies are available on the system. Don't fetch through vcpkg." OFF
1715
)
1816

1917
# vcpkg manifest mode

cmake/KDUtilsFunctions.cmake

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
#
1010
function(kdutils_check_submodule_exists name path)
1111
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${path}/.git")
12-
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
13-
message(FATAL_ERROR
14-
"The ${name} git submodule is not initialized.\n"
15-
"Please run the following commands in the source directory (${PROJECT_SOURCE_DIR}):\n"
16-
" git submodule update --init --recursive\n"
12+
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
13+
message(
14+
FATAL_ERROR
15+
"The ${name} git submodule is not initialized.\n"
16+
"Please run the following commands in the source directory (${PROJECT_SOURCE_DIR}):\n"
17+
" git submodule update --init --recursive\n"
1718
)
1819
else()
19-
message(FATAL_ERROR
20-
"The ${name} submodule is missing - please report a broken source package.\n"
21-
)
20+
message(FATAL_ERROR "The ${name} submodule is missing - please report a broken source package.\n")
2221
endif()
2322
endif()
2423
endfunction()

0 commit comments

Comments
 (0)