<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake][GTK][OSX] ThreadIdentifierData::initialize assertion fails because there are two copies of WTF in process (one as part of webkit2, one as part of jsc)"
   href="https://bugs.webkit.org/show_bug.cgi?id=153176#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake][GTK][OSX] ThreadIdentifierData::initialize assertion fails because there are two copies of WTF in process (one as part of webkit2, one as part of jsc)"
   href="https://bugs.webkit.org/show_bug.cgi?id=153176">bug 153176</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>Taking a quick look over <a href="https://cmake.org/cmake/help/v3.4/command/target_link_libraries.html">https://cmake.org/cmake/help/v3.4/command/target_link_libraries.html</a>

I think this might be what the PUBLIC, PRIVATE, and INTERFACE specifiers are for. What if, in Source/JavaScriptCore/CMakeLists.txt, instead of this:

target_link_libraries(JavaScriptCore ${JavaScriptCore_LIBRARIES})

You were to replace it with:

target_link_libraries(JavaScriptCore PRIVATE ${JavaScriptCore_LIBRARIES})

Perhaps that would fix this?

Similarly (for Source/WebKit2/CMakeLists.txt):

set(WebKit2_LIBRARIES
    PRIVATE WebCore
    INTERFACE JavaScriptCore
)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>