mirror of https://github.com/fan-ziqi/rl_sar.git
fix: let CMake find the correct Python version when building for ROS2 Foxy (#38)
* fix: finding correct python version --------- Co-authored-by: robotsfan <fanziqi614@gmail.com>
This commit is contained in:
parent
64fc72d613
commit
6fd0136d44
|
@ -29,7 +29,8 @@ find_package(rclpy REQUIRED)
|
|||
find_package(gazebo_msgs REQUIRED)
|
||||
find_package(std_srvs REQUIRED)
|
||||
|
||||
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
|
||||
# Make sure to find Python 3.8
|
||||
find_package(Python3 3.8 EXACT COMPONENTS Interpreter Development REQUIRED)
|
||||
|
||||
link_directories(/usr/local/lib)
|
||||
include_directories(${YAML_CPP_INCLUDE_DIR})
|
||||
|
|
Loading…
Reference in New Issue