From 92d4ac7404c88d305abe6b9e72aecefa43db935d Mon Sep 17 00:00:00 2001 From: BluewhaleYF Date: Sat, 18 Apr 2026 08:52:01 +0800 Subject: [PATCH] fix: force local installation prefix to avoid permission denied error on linux --- linux/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 0f9474be4..923dadde3 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -1,6 +1,8 @@ # Project-level configuration. cmake_minimum_required(VERSION 3.13) project(runner LANGUAGES CXX) +# 强制使用本地构建目录作为安装前缀 +set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Installation prefix" FORCE) # The name of the executable created for the application. Change this to change # the on-disk name of your application.