Hi Dieter, What about:
get_filename_component(result "/a/b/c/../../d/e" ABSOLUTE) Regards, Marcel Loose. -----Original Message----- From: Dieter Oberkofler <[email protected]> Reply-to: [email protected] To: [email protected] 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 _______________________________________________ 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
