Fix configure error when BUILD_CARLA_UNREAL=OFF

This commit is contained in:
Marcel Pi 2024-06-27 19:31:50 +02:00
parent e69289736f
commit 16014019e0
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,8 @@ carla_string_option (
"${CARLA_UNREAL_RHI_DEFAULT}"
)
if (${BUILD_CARLA_UNREAL} AND ${CARLA_HAS_UNREAL_ENGINE_PATH})
if (${BUILD_CARLA_UNREAL})
if (${CARLA_HAS_UNREAL_ENGINE_PATH})
carla_message (
"Carla UE project successfully added to build. (UE path: ${CARLA_UNREAL_ENGINE_PATH})"
)
@ -209,6 +210,7 @@ else ()
"Please set it to point to the root path of your CARLA Unreal Engine installation."
)
endif ()
endif ()
carla_string_option (
CARLA_LAUNCH_ARGS