[cmake-developers] [CMake 0015259]: Source file properties are lost, if the name of the file is not specified case sensitive.

Mantis Bug Tracker mantis at public.kitware.com
Fri Nov 21 08:10:49 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15259 
====================================================================== 
Reported By:                Alexander Markert
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15259
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-11-21 08:10 EST
Last Modified:              2014-11-21 08:10 EST
====================================================================== 
Summary:                    Source file properties are lost, if the name of the
file is not specified case sensitive.
Description: 
If you add a source file and the file name is not specified case sensitive, then
CMake corrects the name - that is ok.

But if you specify additional properties for the file via
SET_SOURCE_FILES_PROPERTIES, the settings are lost!

This is only true for CMake 3.1.0, CMake 3.0.2 worked fine.


Steps to Reproduce: 
Add a source file with a name, which is not case sensitive and set an additional
propery via SET_SOURCE_FILES_PROPERTIES.

Example of CMakeLists.txt:
# Name is actually WarningsAsError.cpp, but warningaserror.cpp is used
SET(FileWarningAsError warningaserror.cpp)
SET(Files main.cpp ${FileWarningAsError})
# option /WX is lost
SET_SOURCE_FILES_PROPERTIES(${FileWarningAsError} PROPERTIES COMPILE_FLAGS
"/WX")
ADD_EXECUTABLE(CaseInsensitive ${Files})


Additional Information: 
Please find attached a configuration file and a batch file, which generated the
given projects with CMake 3.1.0 and CMake 3.0.2.
The paths to CMake have to be adjusted in CallCMake.bat.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-11-21 08:10 Alexander MarkertNew Issue                                    
2014-11-21 08:10 Alexander MarkertFile Added: DummyProject.7z                   

======================================================================



More information about the cmake-developers mailing list