[cmake-developers] [CMake 0015955]: CMAKE-GUI creates varies with trailing blanks

Mantis Bug Tracker mantis at public.kitware.com
Fri Feb 5 01:58:29 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15955 
====================================================================== 
Reported By:                Haju Schulz
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15955
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-02-05 01:58 EST
Last Modified:              2016-02-05 01:58 EST
====================================================================== 
Summary:                    CMAKE-GUI creates varies with trailing blanks
Description: 
The cmake-gui dialog to add a variable includes trailing blanks into a variable
name. This can lead to a variety of issues later during configure an build step
because nothing visualizes such trailing blanks.

In my case I copied cmake project setup instructions from a website. This
copy&paste operation resulted in the following name inside the cmake-gui:
"BOOST_ROOT ".  Mind the blank after "..ROOT" !  It took a long time to figure
out why configuring this project failed to find BOOS as nothing in the gui shows
this trailing blank.

To make things worse, the cmake-gui remembers that a user has added "BOOST_ROOT
" variable, and keeps offering this as auto-complete name in new project setup
attempts. 

Steps to Reproduce: 
1) create a new crake-project with make-gui
2) click "+ add entry"
3) Enter (without the "-Quotes) this as name: "NAME_WITH_SPACE   "
4) press OK

The cmake-gui shows a variable with "NAME_WITH_SPACE", but internally it is
"NAME_WITH_SPACE    "
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-02-05 01:58 Haju Schulz    New Issue                                    
======================================================================



More information about the cmake-developers mailing list