diff --git a/src/rl_sar/CMakeLists.txt b/src/rl_sar/CMakeLists.txt index 68b2eb9..951d4bd 100644 --- a/src/rl_sar/CMakeLists.txt +++ b/src/rl_sar/CMakeLists.txt @@ -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})