[CMake] Convert relative to absolute directory

Marcel Loose loose at astron.nl
Thu Jun 18 07:36:02 EDT 2009


Hi Dieter,

What about:

  get_filename_component(result "/a/b/c/../../d/e" ABSOLUTE)

Regards,
Marcel Loose.

-----Original Message-----
From: Dieter Oberkofler <doberkofler.lists at gmail.com>
Reply-to: doberkofler.lists at gmail.com
To: CMake at cmake.org
Subject: [CMake] Convert relative to absolute directory
Date: Thu, 18 Jun 2009 13:12:24 +0200

Hi,
is there a way (in CMake) to convert a relative directory (e.g.
/a/b/c/../../d/e) to an abolsute one (e.g. /a/d/e)?
Thank you,
Dieter

_______________________________________________
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



More information about the CMake mailing list