<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">You don't compile a header only library
(unless you're talking about precompiled headers, which I think
you don't).<br>
<br>
What you need is compiling the sources using it as Objective C.<br>
Which is a matter of adding target_compile_options(<target>
PRIVATE "-ObjC") on the target with the sources if I remember
correctly.<br>
<br>
/Florent<br>
<br>
On 30/11/2016 17:55, Henry Borchers wrote:<br>
</div>
<blockquote
cite="mid:CAJmDSmc+k0oNbZC6xfJAeHt1PYRE11eMFaZ-XDqUyS8RrUUatw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>First time poster so I hope I get the etiquette right. I'm
a novice CMake user and I've never come across the type of
issue before.</div>
<div><br>
</div>
<div>I'm trying to figure out how to use this cross platform
header only dialog library in my project.</div>
<div><a moz-do-not-send="true"
href="https://github.com/guillaumechereau/noc">https://github.com/guillaumechereau/noc</a><br>
</div>
<div><br>
</div>
<div>When using this on OSX, it links to "AppKit.h" which is an
Objective-c header. How can I tell CMake that this header only
library file needs to be compiled as Objective-C if I'm
compiling on OSX?</div>
<div><br>
</div>
<div>Thanks, </div>
<div>Henry</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>