made boost lookup in cmake build file smarter