cmake module update and C++ apply to all modules