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.