On 03/07/2012 11:00 PM, David C. Rankin wrote: > CMake Error at cmake/modules/TDEMacros.cmake:662 (add_library): > Target "kscan-shared" links to item "v4l1 " which has leading or trailing > whitespace. This is now an error according to policy CMP0004. > Call Stack (most recent call first): > libkscan/CMakeLists.txt:38 (tde_add_library) I've looked, policy CMP0004 will not work in this situation. If you are concatenating lib strings, then whitespace at the end of a string is an absolute 'requirement' in order to prevent that same error we see here. LIBS=" -lm -lattr -lsane " LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu" If you remove leading/trailing whitespace from ${LIBS} and concatenate ${LDFLAGS}${LIBS}, then yes, it will cause this error every time :) -- David C. Rankin, J.D.,P.E.