solve the cmake error for common module