-
Notifications
You must be signed in to change notification settings - Fork 356
Open
Description
Describe the bug
If your Cube directories are not in the default paths and you use relative paths for STM32_CUBE_<FAMILY>_PATH it will fail to find CMSIS.
Sources to reproduce
Please provide link to repository showing the problem.
- In main branch
Steps to reproduce
- Download of fetch Cube code from
examples/fetch-cube - Place it somewhere other than the default location of
/opt/STM32Cube<FAMILY> - Go to
root/examples/blinky - Create a build folder and cd build
- Run
cmake .. -DSTM32_CUBE_F4_PATH=<absolute-path>/stm32-cmake/thirdParty/STM32CubeF4 - This builds successfully.
- rm -rf ./* in build
- Run
cmake .. -DSTM32_CUBE_F4_PATH=<relative-path>/stm32-cmake/thirdParty/STM32CubeF4leads to
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:290 (message): Could NOT find CMSIS (missing: CMSIS_INCLUDE_DIRS CMSIS_SOURCES STM32F4)
Expected behavior
Expected behavior is that this project should be able to handle relative paths or at least mention it in big bold letters in the documentation.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: Linux x86_64
- Compiler: arm-none-eabi-gcc 15.2.Rel1
- stm32-cmake: ecc5acc
- cmake: 4.2.2
Additional context
Add any other context about the problem here.
Reactions are currently unavailable