Hello,
I am trying to use CMake to build PETSc. However, when using the following configure command
set(PETSC_CONFIG_COMMAND
./configure \[other flags\] LDFLAGS="-L${LLVM_PATH}/lib/clang/17/lib/linux/ -lclang_rt.builtins-x86_64")
It gets parsed into the configure options as ““-L${LLVM_PATH}/lib/clang/17/lib/linux/ -lclang_rt.builtins-x86_64”“, with the double quotes at the end messing everything up. My Googling has suggested this is an issue with how CMake parses the arguments here, but I couldn’t find a solution.
Would anyone know a way to ensure CMake doesn’t add extra quotes here? Environment variables are not an option as they cause unwanted behaviour elsewhere.