[cmake-developers] [CMake 0015257]: CMake from command line using wrong generator
Mantis Bug Tracker
mantis at public.kitware.com
Wed Nov 19 14:03:19 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15257
======================================================================
Reported By: Javier
Assigned To:
======================================================================
Project: CMake
Issue ID: 15257
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-11-19 14:03 EST
Last Modified: 2014-11-19 14:03 EST
======================================================================
Summary: CMake from command line using wrong generator
Description:
I'm trying to generate NMake Makefiles with cmake from the command line, but I'm
getting the wrong generator:
c:\gitbuild\x>cmake –G "NMake Makefiles" c:\gitbuild\cc_vob\tcs
-- Building for: Visual Studio 8 2005
-- The C compiler identification is MSVC 14.0.50727
-- The CXX compiler identification is MSVC 14.0.50727
-- Check for working C compiler using: Visual Studio 8 2005
-- Check for working C compiler using: Visual Studio 8 2005 -- works
-- Detecting C compiler ABI info
Steps to Reproduce:
1) I open a Visual Studio 2005 command line (yes 2005, it's a legacy project).
2) I add cmake path:
set PATH="c:\Program Files (x86)\CMake 2.8\bin";%path%
3) I run:
cmake –G "NMake Makefiles" c:\gitbuild\cc_vob\tcs
4) Instead of generating nmake makefiles, I get a VS Solution:
-- Building for: Visual Studio 8 2005
-- The C compiler identification is MSVC 14.0.50727
-- The CXX compiler identification is MSVC 14.0.50727
Additional Information:
- If I don't add CMake bin to Path variable, it sometimes uses the correct
generator, however, I have to call cmake with a fully qualified name:
c:\gitbuild\p>"c:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -G "NMake
Makefiles" ..\cc_vob\tcs
-- The C compiler identification is MSVC 14.0.50727
-- The CXX compiler identification is MSVC 14.0.50727
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
8/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
8/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
- I'm using Visual Studio Command Line Prompt shell (x86).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-11-19 14:03 Javier New Issue
======================================================================
More information about the cmake-developers
mailing list