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