<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 13, 2019 at 8:24 AM Theodore Hall <<a href="mailto:twhall@umich.edu">twhall@umich.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Greetings,<div><br></div> <font face="monospace"> set_target_properties(target PROPERTIES <br>    IMPORTED_LOCATION location</font><div><span style="font-family:monospace">    IMPORTED_IMPLIB implib</span></div><div><div><font face="monospace">    INTERFACE_INCLUDE_DIRECTORIES directory+</font></div><div><font face="monospace">  )<br></font><div><br></div><div>Is there a way to assign more than one directory to INTERFACE_INCLUDE_DIRECTORIES ?  The property name is plural, but every attempt I've made to specify more than one directory has failed.  CMake complains that either: I've passed the wrong number of arguments; or concatenates all of them into one path which of course doesn't exist.</div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><br></div><div>I've found a work-around using</div><div><br></div><div><font face="monospace">  target_include_directories (target<br></font></div><div><font face="monospace">    INTERFACE directory1<br>    INTERFACE directory2</font></div><div><font face="monospace">  )<br></font></div><div><div><br></div><div>It just seems odd that a property with a plural name accepts only a singular value.  I feel like I'm missing something.  I've tried wrapping multiple directories in various kinds of brackets and quotes and separating them with ; or , instead of whitespace.  (This is Windows, so : isn't a path separator; the system PATH variable uses ; as the separator.)</div></div></div></div></div></blockquote><div><br></div><div><br></div><div><div>OPTION A: Put quotes around a semi-colon separated string if using <font face="monospace">set_target_properties()</font>:</div><div><br></div><div><font face="monospace">set_target_properties(target PROPERTIES <br>    IMPORTED_LOCATION location</font><div><span style="font-family:monospace">    IMPORTED_IMPLIB implib</span></div><div><div><font face="monospace">    INTERFACE_INCLUDE_DIRECTORIES "directory1;directory2"</font></div><div><font face="monospace">  )<br></font></div></div></div><div><font face="monospace"><br></font></div><div>OPTION B: List multiple directories after just one INTERFACE keyword if using <font face="monospace">target_include_directories()</font>:</div><div><br></div><div><div><font face="monospace">  target_include_directories (target<br></font></div><div><font face="monospace">    INTERFACE directory1 directory2</font></div><div><font face="monospace">  )<br></font></div><div></div></div><div><br></div><div>Either option should work for all platforms, but note that option A will overwrite any previous contents of INTERFACE_INCLUDED_DIRECTORIES whereas option B will append to any previous contents. For that reason, I'd generally recommend option B. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div></blockquote></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div><div><br></div><div>Get the hand-book for every CMake user: <a href="https://crascit.com/professional-cmake/" target="_blank">Professional CMake: A Practical Guide</a><br></div><div>Consulting services (CMake, C++, build/release processes): <a href="https://crascit.com/services" target="_blank">https://crascit.com/services</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>