Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From d155ffd33630f80b23c31b3a6e01da221dd9bd13 Mon Sep 17 00:00:00 2001 |
| 2 | From: Luca Boccassi <luca.boccassi@gmail.com> |
| 3 | Date: Fri, 30 Mar 2018 16:36:22 +0100 |
| 4 | Subject: [PATCH] Problem: out of date with zproject |
| 5 | |
| 6 | Upstream-Status: backport |
| 7 | Signed-off-by: Adrian Bunk <bunk@stusta.de> |
| 8 | |
| 9 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 10 | index 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 | |