cmBuildDatabase: fix language comparison for visibility Only C++ sources need checked for `CXX_MODULES` file set types, not the other way around.