Re: [CMake] Find parent of ${PROJECT_SOURCE_DIR}

2018-08-28 Thread Petr Kmoch
Hi, can you elaborate on how the commands you've shown "don't work?" What do they do and how does it differ from what you need? Petr On Tue, 28 Aug 2018 at 08:33, Ke Gao wrote: > Hi, > > I tried different way of using GET_FILENAME_COMPONENT to find the parent > path of PROJECT_SOURCE_DIR, or

[CMake] Find parent of ${PROJECT_SOURCE_DIR}

2018-08-28 Thread Ke Gao
Hi, I tried different way of using GET_FILENAME_COMPONENT to find the parent path of PROJECT_SOURCE_DIR, or another path relative to the parent of PROJECT_SOURCE_DIR, never succeeded. Can anybody help, thank you very much. None of the following works. I'm using Cmake 2.8.12