Updated macros.cmake with different string matching parameters on searched libraries.