Describe the bug
Building with -DENABLE_CUDA=NO -DNSTATIC=YES still some CUDA libraries, including static ones, for libcholmod and libspqr:

To Reproduce
Build is performed on julia's Yggdrasil: JuliaPackaging/Yggdrasil#6296
cmake flags are:
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${prefix} \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DENABLE_CUDA=NO \
-DNFORTRAN=YES \
-DNOPENMP=YES \
-DNPARTITION=YES \
-DNSTATIC=YES \
-DBLAS_FOUND=1 \
-DBLAS_LIBRARIES="${libdir}/lib${BLAS_NAME}.${dlext}" \
-DBLAS_LINKER_FLAGS="${BLAS_NAME}" \
-DBLAS_UNDERSCORE=ON \
-DBLA_VENDOR="${BLAS_NAME}" \
-DBLAS64_SUFFIX="_64" \
-DALLOW_64BIT_BLAS=YES \
-DLAPACK_FOUND=1 \
-DLAPACK_LIBRARIES="${libdir}/lib${BLAS_NAME}.${dlext}" \
-DLAPACK_LINKER_FLAGS="${BLAS_NAME}"
Expected behavior
No CUDA, no static libraries.
Desktop (please complete the following information):
Occurs on both Linux and macOS (all versions tested).
Describe the bug
Building with
-DENABLE_CUDA=NO -DNSTATIC=YESstill some CUDA libraries, including static ones, for libcholmod and libspqr:To Reproduce
Build is performed on julia's Yggdrasil: JuliaPackaging/Yggdrasil#6296
cmake flags are:
Expected behavior
No CUDA, no static libraries.
Desktop (please complete the following information):
Occurs on both Linux and macOS (all versions tested).