checkROS2Distribution.cmake 440 B

12345678
  1. # Copyright (c) Contributors to the Open 3D Engine Project.
  2. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR MIT
  5. if (NOT "$ENV{ROS_DISTRO}" STREQUAL "${ROS_DISTRO}")
  6. message(FATAL_ERROR "ROS 2 distribution does not match. Configuration created for: ${ROS_DISTRO}, sourced distribution: $ENV{ROS_DISTRO}. Please reconfigure project")
  7. endif()