Propogate CPM_LIBRARIES passed function scope.

See previous commit message for rational on propogating CPM_LIBRARIES
upwards through the function and subdirectory scopes.