cmake mac library config