Issue 32914: python3-config --ldflags gives a CMP0004 error due to a whitespace
Hi. I bumped into an interesting compilation issue when I was compiling ecFlow with Python 3 support. It turns out that python3-config --ldflags gave me this: " -L/usr/lib64 -lpython3.6m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic" This caused a CMP0004 error due to the space before -L. With this patch applied, the command gives me: "-L/usr/lib64 -lpython3.6m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic" Attached is the patch I made to fix this issue. It's as simple as moving $LIBPLUSED one place so that -L$libdir is first.