fix recent cmake warnings and update cmake way of handling rpath
1 file changed