Skip to content

Commit

Permalink
Include Platform Paths files for the host (#1826)
Browse files Browse the repository at this point in the history
This fixes searching for installed picotool/pioasm on Windows, and generally improves default find_package behaviour
  • Loading branch information
will-v-pi authored Aug 15, 2024
1 parent e049f50 commit a6f21b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmake/Platform/PICO.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# this is included because toolchain file sets SYSTEM_NAME=PICO

set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
set(CMAKE_EXECUTABLE_SUFFIX .elf)
set(CMAKE_EXECUTABLE_SUFFIX .elf)

# include paths to find installed tools
if(CMAKE_HOST_WIN32)
include(Platform/WindowsPaths)
else()
include(Platform/UnixPaths)
endif()

0 comments on commit a6f21b6

Please sign in to comment.