MantisBT - CMake
View Issue Details
0014325CMakeCMakepublic2013-07-31 05:382014-02-10 10:44
Gregor Jasny 
Stephen Kelly 
normalminoralways
closedfixed 
Linux x64RHEL6
CMake 2.8.11.1 
CMake 2.8.12 
0014325: Cmake parser rejects empty items list in target_include_directories
I wonder if cmake should be able to parse the following project file:

  cmake_minimum_required(VERSION 2.8.11)
  project(Foo)

  add_library(mylib STATIC mylib.c)

  #set(a "a")

  target_include_directories(mylib PUBLIC ${a})


The help text for target_include_directories shows the following syntax:

  target_include_directories(<target> [BEFORE
      <INTERFACE|PUBLIC|PRIVATE> [items1...]
     [<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])

So I would consider the item list in the [] brackets as optional.
No tags attached.
Issue History
2013-07-31 05:38Gregor JasnyNew Issue
2013-07-31 08:30Brad KingAssigned To => Stephen Kelly
2013-07-31 08:30Brad KingStatusnew => assigned
2013-08-02 06:37Stephen KellyStatusassigned => resolved
2013-08-02 06:37Stephen KellyFixed in Version => CMake 2.8.12
2013-08-02 06:37Stephen KellyResolutionopen => fixed
2014-02-10 10:44Robert MaynardNote Added: 0035068
2014-02-10 10:44Robert MaynardStatusresolved => closed

Notes
(0035068)
Robert Maynard   
2014-02-10 10:44   
Closing resolved issues that have not been updated in more than 4 months.