MantisBT - CMake
View Issue Details
0015693CMakeCCMakepublic2015-08-12 08:312016-01-04 11:52
Matt McCormick 
Stephen Kelly 
normalmajoralways
closedfixed 
LinuxGentoo
CMake 3.4 
CMake 3.4CMake 3.4 
0015693: include_directories(BEFORE not following BEFORE option
When calling include_directories(BEFORE, the directories are included, but they are appended instead of pre-pended to the list.

git bisect with the attached CMakeLists.txt identified the following commit:

6ed9c7e024d66d89ab303ba0d299fa4ee099f91b is the first bad commit
commit 6ed9c7e024d66d89ab303ba0d299fa4ee099f91b
Author: Stephen Kelly <steveire@gmail.com>
Date: Sat Jul 18 12:28:49 2015 +0200

    cmState: Host buildsystem properties for directories.
No tags attached.
txt CMakeLists.txt (371) 2015-08-12 08:31
https://public.kitware.com/Bug/file/5506/CMakeLists.txt
Issue History
2015-08-12 08:31Matt McCormickNew Issue
2015-08-12 08:31Matt McCormickStatusnew => assigned
2015-08-12 08:31Matt McCormickAssigned To => Stephen Kelly
2015-08-12 08:31Matt McCormickFile Added: CMakeLists.txt
2015-08-24 09:51Brad KingNote Added: 0039319
2015-08-24 09:51Brad KingStatusassigned => resolved
2015-08-24 09:51Brad KingResolutionopen => fixed
2015-08-24 09:51Brad KingFixed in Version => CMake 3.4
2015-08-24 10:44Matt McCormickNote Added: 0039322
2016-01-04 11:52Robert MaynardNote Added: 0040124
2016-01-04 11:52Robert MaynardStatusresolved => closed

Notes
(0039319)
Brad King   
2015-08-24 09:51   
Fixed and test case added:

 include_directories: Fix regression in BEFORE option
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a4bd3010 [^]
(0039322)
Matt McCormick   
2015-08-24 10:44   
Thank you!
(0040124)
Robert Maynard   
2016-01-04 11:52   
Closing resolved issues that have not been updated in more than 4 months.