kilograham / rp2040-doom

Fully-featured Doom port for the Raspberry Pi RP2040 microcontroller
GNU General Public License v2.0
750 stars 93 forks source link

CMake Error: Unknown CMake command "suppress_tinyusb_warnings" #24

Closed bhass1 closed 3 months ago

bhass1 commented 3 months ago

Issue Context I am compiling the project, and I do not want to bother with USB Support, so I skipped initializing the tinyUSB submodule within the pico-sdk.

Current Behavior However, this approach causes the build for this project to fail with the following output:

CMake Warning at /root/source/pico-sdk/src/rp2_common/tinyusb/CMakeLists.txt:10 (message):
  TinyUSB submodule has not been initialized; USB support will be unavailable

  hint: try 'git submodule update --init' from your SDK directory
  (/root/source/pico-sdk).

-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - not found
-- Looking for dirent.h
-- Looking for dirent.h - not found
CMake Error at src/CMakeLists.txt:653 (suppress_tinyusb_warnings):
  Unknown CMake command "suppress_tinyusb_warnings".

-- Configuring incomplete, errors occurred!

Expected Behavior I would expect the cmake to succeed without error, and the build would output the targets that do not depend on tinyUSB.

Workarounds Just doing the git submodule update --init from the SDK directory allows me to get past this cmake error in this project.

kilograham commented 3 months ago

should be fixed