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

-- 

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