PX4 / px4_msgs

ROS/ROS2 messages that match the uORB messages counterparts on the PX4 Firmware
http://px4.io
BSD 3-Clause "New" or "Revised" License
68 stars 123 forks source link

Issue in CMakeFlies.txt #9

Open lymnxn opened 2 years ago

lymnxn commented 2 years ago

I face some problem when I complie it. My cmake version is 3.16.3. Starting >>> px4_msgs --- stderr: px4_msgs
CMake Error at CMakeLists.txt:25 (if): if given arguments:

"MATCHES" "ardent" "OR" "MATCHES" "bouncy" "OR" "MATCHES" "crystal"

Unknown arguments specified


I change line 25 and line 52 to :

if((${ROS_DISTRO} MATCHES "ardent") OR (${ROS_DISTRO} MATCHES "bouncy") OR (${ROS_DISTRO} MATCHES "crystal"))

and solve it

sumedhreddy90 commented 2 years ago

Bravo @lymnxn if((${ROS_DISTRO} MATCHES "ardent") OR (${ROS_DISTRO} MATCHES "bouncy") OR (${ROS_DISTRO} MATCHES "crystal"))

This helped me to solve the issue. Thanks mate! @lymnxn I request you to raise a PR for this

sumedhreddy90 commented 2 years ago

Raised a PR https://github.com/PX4/px4_msgs/pull/12