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                                    
======================================================================

-- 

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://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to