CMake: fixed compiler settings inheritance