${FILE_PATH} is PATH part of ${FIL} and ${FIL} is path of each of .proto files relative to CMakeLists.txt as the user has entered in CMakeLists.txt. So ${FIL} and consequently ${FILE_PATH} cannot contain drive letters in a genuine usage scenario. Or I'm missing something.
On Mon, May 26, 2014 at 3:45 PM, David Cole <dlrd...@aol.com> wrote: > > Hi everybody there, > > > > Subject says it all. See the attached patch please. > > > > (Didn't care enough to leave hg for git to generate the patch. Sorry.) > > > FILE_PATH is likely to contain "C:" or some other drive letter on > Windows. It is therefore unsuitable for using to construct a sub-path > underneath CMAKE_CURRENT_BINARY_DIR. > > You don't have to care enough to leave hg, but we do have to care > enough to make sure CMake still works on all the platforms it's > intended to work on. > > This patch may fix your particular use case, but it is not generally > correct, and therefore, unlikely to be adopted into upstream CMake. > There must be a better solution, that will work on all platforms... > > > David C. > > >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers