MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015977 | CMake | CMake | public | 2016-02-16 20:28 | 2016-06-10 14:21 |
Reporter | Richard Lang | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows 7 64 bit | OS | OS Version | ||
Product Version | CMake 3.3.1 | ||||
Target Version | Fixed in Version | CMake 3.4.3 | |||
Summary | 0015977: include_directories() gags on ".." embedded in directory path | ||||
Description | Working on port of collection of existing projects from proprietary toolchain to cmake, where some source and include files reside in sibling/common ancestor folders of of the project folders |-- SharedSource | |--SharedSource1.c | |--SharedSource2.c | +--SharedSource1.h +-- Project1 | |--Project1.c | +--MakeLists.txt +-- Project2 |--Project2.c +--MakeLists.txt Using Windows native cmake v3.4.1 I can quite happily specify "SharedSource" as an include directory in my project cmake scripts using a "../' parent directory relative reference as follows: ... include_directories(../SharedSource) ... however when I try and run the same script using cmake within the cygwin & MSYS2 UNIX emulation environments it fails with a "Found relative path while evaluating include directories" message. The problem still occurs when I explicitly prepend CMAKE_CURRENT_SOURCE_DIR on the path, as follows include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../SharedSource) The cygwin cmake version is 3.3.1, while the MSYS2 one is 3.2.3, and probably reflects the current version in these environments, as I've installed them pretty recently. | ||||
Steps To Reproduce | |||||
Additional Information | Don't currently have a native UNIX/linux environment to try this on. I'm a UNIX novice, but AFAIK "../SharedSource" should be a valid relative path on UNIX platforms. Can't see anything obvious in the bug tracker that would suggest that this has been fixed between 3.3.1 and 3.4.1, suggesting it's maybe a platform idiosyncrasy. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-02-16 20:28 | Richard Lang | New Issue | |||
2016-02-17 09:38 | Brad King | Note Added: 0040497 | |||
2016-02-17 15:33 | Richard Lang | Note Added: 0040502 | |||
2016-02-17 15:35 | Brad King | Status | new => resolved | ||
2016-02-17 15:35 | Brad King | Resolution | open => fixed | ||
2016-02-17 15:35 | Brad King | Fixed in Version | => CMake 3.4.3 | ||
2016-06-10 14:21 | Kitware Robot | Note Added: 0041247 | |||
2016-06-10 14:21 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|