To fix Windows compilation on ROS Humble, this PR:
Adds #define _USE_MATH_DEFINES to permit to use M_PI,
Switch to use BUILD_SHARED_LIBS set to ON by default. This is not strictly necessary, but it is done to workaround a bug in rosidl_typesupport_fastrtps_cpp and rosidl_typesupport_fastrtps_c on ROS Humble when when BUILD_SHARED_LIBS is set to OFF, see https://github.com/RoboStack/ros-humble/issues/1 .
To fix Windows compilation on ROS Humble, this PR:
#define _USE_MATH_DEFINES
to permit to useM_PI
,BUILD_SHARED_LIBS
set toON
by default. This is not strictly necessary, but it is done to workaround a bug inrosidl_typesupport_fastrtps_cpp
androsidl_typesupport_fastrtps_c
on ROS Humble when whenBUILD_SHARED_LIBS
is set toOFF
, see https://github.com/RoboStack/ros-humble/issues/1 .