[cmake-developers] [CMake 0015879]: Wrong configuration name emitted by generator expression

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 11 16:56:50 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15879 
====================================================================== 
Reported By:                Javier Martinez
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15879
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-12-11 16:56 EST
Last Modified:              2015-12-11 16:56 EST
====================================================================== 
Summary:                    Wrong configuration name emitted by generator
expression
Description: 
CMake has issues with the $<CONFIG> and $<CONFIG:name> generator expressions
when one configuration name is a substring of another. The attached reproducer
has Debug, Release and ReleaseInternal as the configuration names. In this case
ReleaseInternal is used instead of Release.

Steps to Reproduce: 
- Generate solution (I placed the CMakeLists/txt file in the /bin folder and
used cmake.exe . to generate the solution)
- Open the generated solution Test.sln
- Open the properties for TestProject -> CMake Rules ->stamp.txt.rule
- Click on Configuration Properties -> Custom Build Tools -> General
- On Configuration select Release
- Inspect the Command Line property, it reads "Printing comment for
ReleaseInternal" instead of "Printing comment for Release"

Additional Information: 
Tested with CMake version cmake-3.4.1-win32-x86
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-12-11 16:56 Javier MartinezNew Issue                                    
2015-12-11 16:56 Javier MartinezFile Added: CMakeLists.txt                    
======================================================================



More information about the cmake-developers mailing list