[cmake-developers] [CMake 0015959]: Using CMake-Gui to run generate for Windows followed by generate for Unix generates incorrect Unix makefiles
Mantis Bug Tracker
mantis at public.kitware.com
Mon Feb 8 02:56:41 EST 2016
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15959
======================================================================
Reported By: Jon Kristensen
Assigned To:
======================================================================
Project: CMake
Issue ID: 15959
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-02-08 02:56 EST
Last Modified: 2016-02-08 02:56 EST
======================================================================
Summary: Using CMake-Gui to run generate for Windows followed
by generate for Unix generates incorrect Unix makefiles
Description:
Running a generator that uses the Windows Shell, and then running a generator
that uses the Unix shell without exiting Cmake-gui first, causes the Unix
makefiles to have the wrong shell command (SHELL = cmd.exe) and Windows path
names (with ‘\’s instead of ‘/’s).
Steps to Reproduce:
1. Start cmake-gui
2. Select a project that uses the Visual Studio 2015 generator and run generate
3. Select a project that uses the CDT4 – Unix makefiles and run generate
Additional Information:
Assumed cause (based on cmake-3.4.3 source distribution) :
The selection of shell seems to be based on the variable cmState::windowsShell
This variable is set to false in the cmState constructor,
and is set to true (through a call to member SetWindowsShell(true) from all
generators that use a Windows shell.
But I could find no code that resets it if a non-Windows-Shell generator is run
at a later time
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-02-08 02:56 Jon Kristensen New Issue
======================================================================
More information about the cmake-developers
mailing list