Include Platform Paths files for the host (#1826)

This fixes searching for installed picotool/pioasm on Windows, and generally improves default find_package behaviour
This commit is contained in:
will-v-pi 2024-08-15 17:29:22 +01:00 committed by GitHub
parent e049f5063f
commit a6f21b6e10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()