[CMake] Source file property INCLUDE_DIRECTORIES

CHEVRIER, Marc marc.chevrier at sap.com
Fri Jan 12 09:06:07 EST 2018


Sure. APPEND keyword is handled at a high level (i.e. regardless the property evolved).

From: J Decker <d3ck0r at gmail.com>
Date: Friday 12 January 2018 at 15:03
To: "CHEVRIER, Marc" <marc.chevrier at sap.com>
Cc: CMake Mail List <cmake at cmake.org>
Subject: Re: [CMake] Source file property INCLUDE_DIRECTORIES



On Fri, Jan 12, 2018 at 5:26 AM, CHEVRIER, Marc <marc.chevrier at sap.com<mailto:marc.chevrier at sap.com>> wrote:
Because this property is not yet supported for source files (see #17507<https://gitlab.kitware.com/cmake/cmake/issues/17507>).
FYI, I worked on this support and the merge request is under process… (see !1596<https://gitlab.kitware.com/cmake/cmake/merge_requests/1596>).


Okay :) Glad someone is on it.

Will also work for set_property( SOURCE ... APPEND PROPERTY INCLUDE_DIRECTORIES ) ?


From: CMake <cmake-bounces at cmake.org<mailto:cmake-bounces at cmake.org>> on behalf of J Decker <d3ck0r at gmail.com<mailto:d3ck0r at gmail.com>>
Date: Friday 12 January 2018 at 14:22
To: CMake Mail List <cmake at cmake.org<mailto:cmake at cmake.org>>
Subject: [CMake] Source file property INCLUDE_DIRECTORIES

Why can't I set INCLUDE_DIRECTORIES for a source file?

https://cmake.org/cmake/help/v3.0/manual/cmake-properties.7.html

I can probably use COMPILE_FLAGS ; but how to guarantee that -I is the proper option for every compiler?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180112/f48185e6/attachment-0001.html>


More information about the CMake mailing list