Skip to content

Commit

Permalink
Merge pull request #799 from Daft-Freak/only-picosystem
Browse files Browse the repository at this point in the history
Only build picosystem hardware test for picosystem
  • Loading branch information
Gadgetoid authored Feb 25, 2023
2 parents 900529e + 1d1844a commit 6d8f7c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/hardware-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.9)
project (hardware-test)
find_package (32BLIT CONFIG REQUIRED PATHS ../..)

if(32BLIT_PICO)
if(PICO_BOARD STREQUAL "pimoroni_picosystem")
# PicoSystem has its own picosystem-hardware-test
return()
endif()
Expand Down
4 changes: 2 additions & 2 deletions examples/picosystem-hardware-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.9)
project (picosystem-hardware-test)
find_package (32BLIT CONFIG REQUIRED PATHS ../..)

if(NOT 32BLIT_PICO)
if(NOT PICO_BOARD STREQUAL "pimoroni_picosystem")
# Hooks into the Pico SDK to get battery charge and VBUS status
return()
endif()

blit_executable (picosystem-hardware-test hardware-test.cpp)
blit_metadata (picosystem-hardware-test metadata.yml)
blit_metadata (picosystem-hardware-test metadata.yml)

0 comments on commit 6d8f7c5

Please sign in to comment.