Fix for dependent libraries with static libs.
Fix for dependent libraries with static libs.

Static libs need to be linked as 'libThis.a libDependent.so', not
'libDependent.so libThis.a'. The latter will not resolve symbols needed
by libThis from libDependent.

ptoharia/CMake,biddisco/CMake,biddisco/CMake,shurikasa/CMake,ptoharia/CMake,shurikasa/CMake,shuaibarshad/KAUST-CMake,shurikasa/CMake,biddisco/CMake,jafyvilla/CMake,shuaibarshad/KAUST-CMake,ptoharia/CMake,jafyvilla/CMake,jafyvilla/CMake,ptoharia/CMake,biddisco/CMake,jafyvilla/CMake,shuaibarshad/KAUST-CMake,shuaibarshad/KAUST-CMake,shurikasa/CMake