[CMake] Unix Makefiles can not find some project files
Bill Hoffman
bill.hoffman at kitware.com
Thu Sep 25 16:54:38 EDT 2008
Mike Jackson wrote:
> I started down the path of using Unix Makefiles on Windows. Here is
> what I have done so far. I downloaded the GnuWin32 files to my PC. I
> edited the .bat file that launches GnuWin32 shell and added the Visual
> Studio 2008 vsvars.bat file. I open a new GnuWin32 shell and type
> cl.exe and get the compiler. Great. I launch cmake-gui.exe from this
> same shell to get Cmake up and create a new build directory selecting
> Unix Makefiles as my generator. Everything configures and generates
> without errors.
> I start compiling and my main library compiles fine but the when
> the first "test" starts to compile I get the following:
>
> [ 80%] Building CXX object Testing/CMakeFiles/BmpIOTest.dir/BmpIOTest.obj
> cd C:/Workspace/MXADataModel/Build/Testing && "C:/Program Files/Microsoft Visual
> Studio 9.0/VC/bin/cl.exe" /nologo /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /D
> _DEBUG /MDd /Zi /Ob0 /Od /RTC1 -IC:/Workspace/MXADataModel/src -IC:/Workspace/MX
> ADataModel/Build -IC:/Developer/VS9/boost/include/boost-1_36 -IC:/Developer/VS9/
> expat/include -IC:/Developer/VS9/hdf5-166/include -IC:/Developer/VS9/tiff/includ
> e -DMXA_BUILT_AS_DYNAMIC_LIB /TP /FoCMakeFiles/BmpIOTest.dir/BmpIOTest.obj /Fd
> C:/Workspace/MXADataModel/Build/Bin/BmpIOTest.pdb -c C:/Workspace/MXADataModel/s
> rc/Testing/BmpIOTest.cpp
> The system cannot find the path specified.
> make[2]: *** [Testing/CMakeFiles/BmpIOTest.dir/BmpIOTest.obj] Error 1
> make[2]: Leaving directory `C:/Workspace/MXADataModel/Build'
> make[1]: *** [Testing/CMakeFiles/BmpIOTest.dir/all] Error 2
> make[1]: Leaving directory `C:/Workspace/MXADataModel/Build'
> make: *** [all] Error 2
Not sure what is wrong. I use cygwin which uses a bash shell. I of
course use my patched version of gmake. I do have not tried the tools
with GnuWin32.
-Bill
More information about the CMake
mailing list