Cmake extras file installed by ament_cmake_export_dependencies may fail when rebuilding the workspace with a different build type
- Lingua principale
- CMake
- Stelle
- 125
- Fork
- 147
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The problem is in the line here:
https://github.com/ament/ament_cmake/blob/9500695b67d2deed539374a844718da22e1cfa95/ament_cmake_export_dependencies/cmake/ament_cmake_export_dependencies-extras.cmake.in#L39
When rebuilding with a different build type `_imported_configurations` will be a list (e.g. `NOCONFIG;RELEASE`), and that makes the `get_target_property` call fail.
To reproduce:
```bash
colcon build --symlink-install --packages-up-to rosidl_typesupport_introspection_cpp
colcon build --symlink-install --packages-up-to rosidl_typesupport_introspection_cpp --cmake-args -DCMAKE_BUILD_TYPE=Release
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.