Scala compiler classpath

How do I provide multiple classpath entries to the scala compiler with variable compilerSettings.classpath.value ?
It appears it doesn’t tolerate multiple entries separated by : or ;

when are you setting the classpath? is it via command line/main-method or directly manipulating the settings object?

do you have some example? and which compiler scala 2 or 3?