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//morestuff"
Notice the double slash. Also if the user specifies backslashes in the
variable, you get this:
"T:\stuff\/morestuff"
Normalization would be ideal here, or a way to properly join the paths like
so:
path( JOIN "${BASE_PATH}" "morestuff" )
Which would yield the cmake path:
"T:/stuff/morestuff"
Is any of this possible? How do I work around this?
---------
Robert Dailey
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake