From d5e910e59dd513f87c979cc6777af259e8bc4303 Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Thu, 29 Feb 2024 20:39:16 -0700 Subject: [PATCH 1/2] src cmake performs library build --- src/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 852cacc..ff8b231 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,6 @@ -# FIXME: Add installation directives for libgps +cmake_minimum_required(VERSION 3.25) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -add_library(${PROJECT_NAME} STATIC gps.c) +if(NOT TARGET libgps) + add_library(libgps STATIC gps.c) + target_include_directories(libgps PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +endif() From 101a5411e929aa5840aa761e910bda0c29adea1c Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Thu, 29 Feb 2024 21:40:03 -0700 Subject: [PATCH 2/2] fixed missing type on hex array --- src/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gps.c b/src/gps.c index bd096c5..d577927 100644 --- a/src/gps.c +++ b/src/gps.c @@ -47,7 +47,7 @@ static const char NULL_TIME[] = "0000-00-00T00:00:00.000Z"; static char uint8_to_hex_char(const uint8_t n) { - static const hex[] = { + static const char hex[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };