From 0c13641fdb478a7bffa964ea13f20f30894e9670 Mon Sep 17 00:00:00 2001 From: Ilya Solozobov Date: Thu, 4 May 2023 14:02:50 +0300 Subject: [PATCH] create temporary file in build directory instead of source --- CMake/connectivity_check.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/connectivity_check.cmake b/CMake/connectivity_check.cmake index 98214bffa1..ed6ee1777c 100644 --- a/CMake/connectivity_check.cmake +++ b/CMake/connectivity_check.cmake @@ -1,7 +1,7 @@ # License: Apache 2.0. See LICENSE file in root directory. # Copyright(c) 2019 Intel Corporation. All Rights Reserved. message(STATUS "Checking internet connection...") -file(DOWNLOAD "https://librealsense.intel.com/Releases/connectivity_check" "${CMAKE_CURRENT_SOURCE_DIR}/connectivity_check" SHOW_PROGRESS TIMEOUT 5 STATUS status) +file(DOWNLOAD "https://librealsense.intel.com/Releases/connectivity_check" "${CMAKE_CURRENT_BINARY_DIR}/connectivity_check" SHOW_PROGRESS TIMEOUT 5 STATUS status) list (FIND status "\"No error\"" _index) if (${_index} EQUAL -1) message(STATUS "Failed to identify Internet connection")