On 2014-02-12 17:22-0000 Dominic Walsh wrote:

Hi

I am trying to use the Ninja generator to compile on a Windows machine using 
the Visual Studio 11 compilers.

From a VS11 console I run cmake (version: 2.8.11.2 ):

cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SYSTEM_NAME=MSVC ..

I then run Ninja (version 1.4.0)

ninja -v

and all appears well until the final link:

[70/70] cmd.exe /c cd . && c:\cygwin\bin\ld.exe /lib /nologo
.... <snip>....
/lib: file not recognized: Is a directory
ninja: build stopped: subcommand failed.

Cygwin is in my path but I am surprised that I appear to be using it to Link?

This comment is based just on what others have reported about MSVC and
Cygwin builds of PLplot since I have no direct experience with either
MSVC or Cygwin.

I think you will find the PATH profoundly affects what cmake does so I
suggest you do the obvious; remove Cygwin from your PATH for MSVC
builds and try again.  This assures, for example, you are using a
Windows version of CMake rather than a Cygwin one.  But that is just
one reason to remove Cygwin from your PATH for MSVC builds, and I am
positive from my Linux and MinGW/MSYS/Wine experience there are many
others.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
--

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to