diff --git a/CMake/Options.cmake b/CMake/Options.cmake index 5a9fd6122..0c22be476 100644 --- a/CMake/Options.cmake +++ b/CMake/Options.cmake @@ -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