<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>165985</bug_id>
          
          <creation_ts>2016-12-16 19:36:14 -0800</creation_ts>
          <short_desc>[CMake] TestWebKitAPIBase links to itself</short_desc>
          <delta_ts>2016-12-19 11:13:23 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>achristensen</cc>
    
    <cc>annulen</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>commit-queue</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1260864</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-12-16 19:36:14 -0800</bug_when>
    <thetext>CMake Warning (dev) at Tools/TestWebKitAPI/CMakeLists.txt:199 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run &quot;cmake --help-policy CMP0038&quot; for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target &quot;TestWebKitAPIBase&quot; links to itself.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/TestWebKitAPI/CMakeLists.txt:199 (add_library):
  Policy CMP0038 is not set: Targets may not link directly to themselves.
  Run &quot;cmake --help-policy CMP0038&quot; for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Target &quot;TestWebKitAPIBase&quot; links to itself.
This warning is for project developers.  Use -Wno-dev to suppress it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260918</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-12-17 06:53:01 -0800</bug_when>
    <thetext>I think I hate linkers.

This fixes the warnings and it links, but there&apos;s got to be a be a better way. I ran into linker errors when I tried anything else, though. In particular, it won&apos;t link if I remove TestWebKitAPIBase from test_webkit2_api_LIBRARIES and specify it manually in target_link_libraries for the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260919</commentid>
    <comment_count>2</comment_count>
      <attachid>297403</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-12-17 06:54:23 -0800</bug_when>
    <thetext>Created attachment 297403
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1260951</commentid>
    <comment_count>3</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-12-17 11:16:34 -0800</bug_when>
    <thetext>LGTM

I don&apos;t think linker can take any blame here, it might be cmake but most probably our project structure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261162</commentid>
    <comment_count>4</comment_count>
      <attachid>297403</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-12-19 11:13:19 -0800</bug_when>
    <thetext>Comment on attachment 297403
Patch

Clearing flags on attachment: 297403

Committed r209991: &lt;http://trac.webkit.org/changeset/209991&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261163</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-12-19 11:13:23 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>297403</attachid>
            <date>2016-12-17 06:54:23 -0800</date>
            <delta_ts>2016-12-19 11:13:19 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-165985-20161217085327.patch</filename>
            <type>text/plain</type>
            <size>1387</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjA5OTU2CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggOTBhMzRhZWUyNjJhZmRjZjIzOWU3YjAyZWIyNjY5ZTAz
YmZiZTg0Yy4uYTZkYjg4YzE5MWFhNGEzMzU1OTE5MjBhOTBkZDA0YjRiN2VkMTMyYSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0
IEBACisyMDE2LTEyLTE3ICBNaWNoYWVsIENhdGFuemFybyAgPG1jYXRhbnphcm9AaWdhbGlhLmNv
bT4KKworICAgICAgICBbQ01ha2VdIFRlc3RXZWJLaXRBUElCYXNlIGxpbmtzIHRvIGl0c2VsZgor
ICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTY1OTg1CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgRml4IENNYWtl
IHdhcm5pbmcgYWJvdXQgYSB0YXJnZXQgbGlua2luZyB0byBpdHNlbGYsIHdoaWNoIG1ha2VzIG5v
IHNlbnNlLgorCisgICAgICAgICogVGVzdFdlYktpdEFQSS9DTWFrZUxpc3RzLnR4dDoKKwogMjAx
Ni0xMi0xN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