build(linux): disable cuda option in cmake when --skip-cuda arg is passed (#3951)
This commit is contained in:
@@ -386,7 +386,7 @@ function run_install() {
|
|||||||
"gcc-ranlib"
|
"gcc-ranlib"
|
||||||
)
|
)
|
||||||
|
|
||||||
#set gcc version based on distros
|
#set gcc version based on distros
|
||||||
if [ "$distro" == "arch" ]; then
|
if [ "$distro" == "arch" ]; then
|
||||||
export CC=gcc-14
|
export CC=gcc-14
|
||||||
export CXX=g++-14
|
export CXX=g++-14
|
||||||
@@ -460,6 +460,8 @@ function run_install() {
|
|||||||
install_cuda
|
install_cuda
|
||||||
cmake_args+=("-DSUNSHINE_ENABLE_CUDA=ON")
|
cmake_args+=("-DSUNSHINE_ENABLE_CUDA=ON")
|
||||||
cmake_args+=("-DCMAKE_CUDA_COMPILER:PATH=$nvcc_path")
|
cmake_args+=("-DCMAKE_CUDA_COMPILER:PATH=$nvcc_path")
|
||||||
|
else
|
||||||
|
cmake_args+=("-DSUNSHINE_ENABLE_CUDA=OFF")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cmake stuff here
|
# Cmake stuff here
|
||||||
|
|||||||
Reference in New Issue
Block a user