[CMake] SUBSTRING - STRING - shorten a string variable
Sören Freudiger
muffmolch at gmx.de
Mon Dec 3 12:56:38 EST 2007
Hello
Following problem:
My CMakeList.txt file is somewhere like:
E:/LBM_subversion/source/topology/amr3d/lbmd3q19/singlephase/testcases/RCF/a
ll_in_one
Now I want to have only the substring:
E:/LBM_subversion/source
Is it possible to get last string with the help of CMAKE_CURRENT_SOURCE_DIR?
I just want to know the position of source. Thus I can shorten the string
stored in CMAKE_CURRENT_SOURCE_DIR very easy. I do not always know the path
behind source/
Best SirAnn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071203/05bd897a/attachment.htm
More information about the CMake
mailing list