[cmake-developers] [CMake 0015444]: include_directories is case insensitive usually, but is case sensitive in files inside subfolders
Mantis Bug Tracker
mantis at public.kitware.com
Fri Mar 13 13:40:25 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15444
======================================================================
Reported By: alean79
Assigned To:
======================================================================
Project: CMake
Issue ID: 15444
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-03-13 13:40 EDT
Last Modified: 2015-03-13 13:40 EDT
======================================================================
Summary: include_directories is case insensitive usually, but
is case sensitive in files inside subfolders
Description:
I have a project that was developed in Windows environment, so the #include
sentences was developed in case insensitive way (there are a LOT of differences
between the name of the .hpp included, and the real name of the .hpp file).
I imported that project in a Linux environment, and configured cmake with the
following clause:
include_directories(
SYSTEM ${PROJECT_SOURCE_DIR}/inc)
Inside the "inc" folder there are .hpp files, but there are subfolders with
aditional .hpp files. In my code, the .hpp files that are in the "inc" folder
are recognized correctly, beside the case problems. But the files in the
subfolders are NOT recognized if there are case differences.
Example:
${PROJECT_SOURCE_DIR}
|
|-- inc
|
|-- vpp => subfolder
| |
| |-- vpp.hpp => header file
|
|-- flags.hpp => header file
If I include the second header file with the following sentence, the file is
recognized correctly:
#include <flags.hpp>
But, if I include the first header file with the following sentence, the file is
NOT found:
#include <vpp/vpp.hpp>
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-03-13 13:40 alean79 New Issue
2015-03-13 13:40 alean79 File Added: CMakeLists.txt
======================================================================
More information about the cmake-developers
mailing list