Re: [CMake] access absolute path of parent directory
Sure. Here is what I have(I've tried it with double quotes as well): set(Bob /..) set(Dave ${Bob}/Dave) set(D_src ${Dave/Dave.cpp) ... and corresponding add executable command at which point the following error is produced: CMake Error at CMakeLists.txt:100 (add_executable): Cannot find source file: /../Dave/Dave.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Let me know if you would need more information. Thanks for your help, Vinay On Tue, Aug 9, 2011 at 12:30 PM, John Drescher wrote: > > I've been trying to access the parent directory by using > > CMakeLists.txt. However, the "../" or ".." or "/../" notations don't > access > > said parent directory. > > > Can you show a small example? I know this has worked for me. > > John > ___ 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
Re: [CMake] access absolute path of parent directory
> I've been trying to access the parent directory by using > CMakeLists.txt. However, the "../" or ".." or "/../" notations don't access > said parent directory. Can you show a small example? I know this has worked for me. John ___ 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
[CMake] access absolute path of parent directory
Hello, I've been trying to access the parent directory by using CMakeLists.txt. However, the "../" or ".." or "/../" notations don't access said parent directory. Thank you, Vinay ___ 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