(cmake) Avoid error in osx package generateion

Logger is now linked statically instead of being build as a shared library