Needed to put CMake list into its own variable for MS Windows list parse problem

On Windows, when used as a literal value, the foreach loop iterates only once setting idir to the list value with the semi-colons replaced by spaces. This alleviates the problem.

Edit: I have no idea why it's doing this...I read the documentation for "foreach" and I'm puzzled :/