Skip to content

Commit a8506b3

Browse files
committed
fix cmake for GH runner
Signed-off-by: Martin <[email protected]>
1 parent 6b56dad commit a8506b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
22
project(OpenHantek)
33

4+
find_package(Git)
5+
46
if (GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
57
# show modified files
68
execute_process(
@@ -31,8 +33,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/")
3133

3234
INCLUDE_DIRECTORIES(".")
3335

34-
find_package(Git)
35-
3636
add_compile_options(-Wall -Wextra -pedantic)
3737

3838
# Silence nasty warnings "parameter passing for argument of type ... changed in GCC 7.1"

0 commit comments

Comments
 (0)