{xip_ram_perms,picoboot_flash_id}/CMakeLists.txt: unset environment variables CFLAGS, CXXFLAGS and LDFLAGS (#140)

If the user set these environment variables to influence the picotool
build, unset them here so that they do not influence the pico-sdk
build. This is especially required for flags that are not supported
by arm-none-eabi compilers.
diff --git a/picoboot_flash_id/CMakeLists.txt b/picoboot_flash_id/CMakeLists.txt
index 199fdfc..1de78ae 100644
--- a/picoboot_flash_id/CMakeLists.txt
+++ b/picoboot_flash_id/CMakeLists.txt
@@ -6,6 +6,14 @@
     # default build type
     set(CMAKE_BUILD_TYPE "MinSizeRel" CACHE STRING "build type")
 
+    # If the user set these environment variables to influence the picotool
+    # build, unset them here so that they do not influence the pico-sdk
+    # build. This is especially required for flags that are not supported
+    # by arm-none-eabi compilers.
+    unset(ENV{CFLAGS})
+    unset(ENV{CXXFLAGS})
+    unset(ENV{LDFLAGS})
+
     include(${PICO_SDK_PATH}/external/pico_sdk_import.cmake)
     project(flash_id C CXX ASM)
     pico_sdk_init()
diff --git a/xip_ram_perms/CMakeLists.txt b/xip_ram_perms/CMakeLists.txt
index 1faeb05..601dc2c 100644
--- a/xip_ram_perms/CMakeLists.txt
+++ b/xip_ram_perms/CMakeLists.txt
@@ -5,6 +5,14 @@
     
     set(PICO_NO_PICOTOOL 1)
 
+    # If the user set these environment variables to influence the picotool
+    # build, unset them here so that they do not influence the pico-sdk
+    # build. This is especially required for flags that are not supported
+    # by arm-none-eabi compilers.
+    unset(ENV{CFLAGS})
+    unset(ENV{CXXFLAGS})
+    unset(ENV{LDFLAGS})
+
     # Pull in SDK (must be before project)
     include(${PICO_SDK_PATH}/external/pico_sdk_import.cmake)