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

John Drescher drescherjm at gmail.com
Fri Jan 21 11:21:36 EST 2011


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


More information about the CMake mailing list