blob: 5f5702c8c86cbe2263d064e9931b326172e63fe4 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From d155ffd33630f80b23c31b3a6e01da221dd9bd13 Mon Sep 17 00:00:00 2001
2From: Luca Boccassi <luca.boccassi@gmail.com>
3Date: Fri, 30 Mar 2018 16:36:22 +0100
4Subject: [PATCH] Problem: out of date with zproject
5
6Upstream-Status: backport
7Signed-off-by: Adrian Bunk <bunk@stusta.de>
8
9diff --git a/CMakeLists.txt b/CMakeLists.txt
10index a3b81722..4f203461 100644
11--- a/CMakeLists.txt
12+++ b/CMakeLists.txt
13@@ -38,7 +38,7 @@ if (NOT CMAKE_BUILD_TYPE)
14 OUTPUT_STRIP_TRAILING_WHITESPACE
15 )
16 message(STATUS "git workspace root [${git_result}]: ${git_root}")
17- if ( "${git_result}" == "0" )
18+ if ( "${git_result}" STREQUAL "0" )
19 set (CMAKE_BUILD_TYPE Debug)
20 else ()
21 set (CMAKE_BUILD_TYPE Release)
22@@ -608,7 +608,7 @@ add_custom_command(
23 TARGET distclean
24 )
25
26-include(ClangFormat)
27+include(ClangFormat OPTIONAL)
28
29 ########################################################################
30 # summary
31