[cmake-developers] [CMake 0014325]: Cmake parser rejects empty items list in target_include_directories

Mantis Bug Tracker mantis at public.kitware.com
Wed Jul 31 05:38:04 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14325 
====================================================================== 
Reported By:                Gregor Jasny
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14325
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-31 05:38 EDT
Last Modified:              2013-07-31 05:38 EDT
====================================================================== 
Summary:                    Cmake parser rejects empty items list in
target_include_directories
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-31 05:38 Gregor Jasny   New Issue                                    
======================================================================




More information about the cmake-developers mailing list