From 98c382cd3de3fd2267490d1b4ac73ea8891c0596 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 17 Dec 2018 23:55:19 +0000 Subject: [PATCH] raspicam: Allow tainted check to be skipped --- host_applications/linux/apps/raspicam/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host_applications/linux/apps/raspicam/CMakeLists.txt b/host_applications/linux/apps/raspicam/CMakeLists.txt index b762b08..eb1ef7c 100644 --- a/host_applications/linux/apps/raspicam/CMakeLists.txt +++ b/host_applications/linux/apps/raspicam/CMakeLists.txt @@ -21,6 +21,7 @@ execute_process( add_definitions("-DGIT_COMMIT_ID=\"${GIT_COMMIT_ID}\"") # Determine if we are tainted +if(NOT SKIP_TAINTED_CHECK) execute_process( COMMAND bash "-c" "git ls-files -m | wc -l" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} @@ -28,6 +29,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE ) add_definitions("-DGIT_TAINTED=${GIT_TAINTED}") +endif(NOT SKIP_TAINTED_CHECK) set (COMMON_SOURCES RaspiCamControl.c