ament / ament/ament_cmake

Using install(DIRECTORY ... TYPE ...) results in "can't find error"

Aperta
#471 1 commento 1 reazione 0 assegnatari Vedi su GitHub
backlog
Lingua principale
CMake
Stelle
125
Fork
147
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In my project I use something like this

```cmake
install(DIRECTORY
include
TYPE INCLUDE)
```

This causes the following error

```
CMake Error at ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:100 (message):
ament_cmake_symlink_install_directory() can't find
'/home/user/ros2ws/src/package/TYPE'
Call Stack (most recent call first):
ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:326 (ament_cmake_symlink_install_directory)
cmake_install.cmake:46 (include)
```

It looks like ament is not expecting these kind of options. I would simply change my code to make it work but a package I depend on installs its stuff using the code mentioned above and I can't change it.
I think I found the function, that is responsible [here](https://github.com/ament/ament_cmake/blob/rolling/ament_cmake_core/cmake/symlink_install/ament_cmake_symlink_install.cmake.in#L17)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.