Re: [CMake] Joining & Normalizing paths

2011-11-01 Thread Alexander Neundorf
On Tuesday 01 November 2011, Robert Dailey wrote: > I don't see a way to join or normalize paths in CMake. For example, there > is a "base path" that the user can specify in a cache variable, like so: > > BASE_PATH = "T:/stuff/" > > Later in my CMake script, I join a subpath to it like so: > > "

[CMake] Joining & Normalizing paths

2011-11-01 Thread Robert Dailey
I don't see a way to join or normalize paths in CMake. For example, there is a "base path" that the user can specify in a cache variable, like so: BASE_PATH = "T:/stuff/" Later in my CMake script, I join a subpath to it like so: "${BASE_PATH}/morestuff" The problem is, this becomes: "T:/stuff/