Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

CMakeLists: only link library if Raspberry Pi (or equivalent condition)

$
0
0
I have a package that I want to run on both a desktop/laptop (x64) and a Raspberry Pi (armhf). There's a node in my package that has to be run on the Raspberry Pi. It uses the wiringPi library. Obviously, doing `catkin_make` on something other than a RPi results in an error, so at the moment I just comment out those lines. I'd like to find a way to only execute `target_link_libraries()` if the current computer/architecture/distro matches that of the RPi.

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>