[CMake] FILE( MAKE_DIRECTORY path) prepends source path to make directory path.

David Cole david.cole at kitware.com
Fri Jan 21 11:34:14 EST 2011


(That made it look like you were trying to create a directory with a literal
" in the name...)


On Fri, Jan 21, 2011 at 11:33 AM, David Cole <david.cole at kitware.com> wrote:

> You don't need those backslashes there. Try:
> file( MAKE_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}/${Release}/sqldrivers" )
>
>
>
> On Fri, Jan 21, 2011 at 11:21 AM, John Drescher <drescherjm at gmail.com>
> wrote:
> >
> > I am getting a the following error:
> >
> > CREATING X:/32Bit/VC.90/Qt/StudyManager/bin/Debug/sqldrivers
> > CMake Error at CMake/GetQtRuntime.cmake:21 (file):
> >  file problem creating directory:
> >
>  X:/CMakeBased/Qt/StudyManager/"X:/32Bit/VC.90/Qt/StudyManager/bin/Debug/sqldrivers"
> > Call Stack (most recent call first):
> >  CMake/GetQtRuntime.cmake:42 (add_qt_sqldriver_file)
> >  CMakeLists.txt:165 (include)
> >
> > for the following two lines of code:
> > message( STATUS "CREATING
> ${EXECUTABLE_OUTPUT_PATH}/${Release}/sqldrivers")
> > file( MAKE_DIRECTORY \"${EXECUTABLE_OUTPUT_PATH}/${Release}/sqldrivers\"
> )
> >
> > Why is the file command prepending the source path to the make
> > directory command?
> >
> > BTW, this is 2.8.4_rc1
> >
> > Thanks,
> > John M. Drescher
> > _______________________________________________
> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110121/e0746719/attachment.htm>


More information about the CMake mailing list