<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:00 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-3047] Export targets for CMake project</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3047</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;This issue was cloned from &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1707&quot; title=&quot;Export targets for CMake project&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1707&quot;&gt;&lt;del&gt;CXX-1707&lt;/del&gt;&lt;/a&gt;.  Essentially, the improvement requested there for the C++ driver needs to be mirrored for the C driver.  Original report text follows:&lt;/p&gt;

&lt;p&gt;Currently mongocxx build directory exposes LIBMONGOCXX_INCLUDE_DIRS and LIBMONGOCXX_LIBRARIES in its config.cmake which projects depending on libmongocxx can use.&lt;/p&gt;

&lt;p&gt;It would instead be preferable to additionally export targets so that other projects can use libmongocxx (and by extension libbson and libmongoc) as subprojects in their own projects. It is additionally, the recommended way for projects to link to third party projects and avoids having to specify both INCLUDE and LINK dir separately.&lt;/p&gt;</description>
                <environment></environment>
        <key id="724824">CDRIVER-3047</key>
            <summary>Export targets for CMake project</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="roberto.sanchez@mongodb.com">Roberto Sanchez</assignee>
                                    <reporter username="roberto.sanchez@mongodb.com">Roberto Sanchez</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Mar 2019 16:38:06 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:21 +0000</updated>
                            <resolved>Mon, 9 Sep 2019 17:43:13 +0000</resolved>
                                                    <fixVersion>1.16.0</fixVersion>
                                    <component>cmake</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2678572" author="xgen-internal-githook" created="Fri, 27 Dec 2019 13:26:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1901&quot; title=&quot;Building C++ driver from master fails to find cmake packages of C driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1901&quot;&gt;&lt;del&gt;CXX-1901&lt;/del&gt;&lt;/a&gt; check for old libbson cmake pkg name&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3047&quot; title=&quot;Export targets for CMake project&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3047&quot;&gt;&lt;del&gt;CDRIVER-3047&lt;/del&gt;&lt;/a&gt; added new cmake package names for the C driver&lt;br/&gt;
(bson-1.0/mongoc-1.0) and deprecated the old ones (libbson-1.0/&lt;br/&gt;
libmongoc-1.0 and libbson-static-1.0/libmongoc-static-1.0).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1707&quot; title=&quot;Export targets for CMake project&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1707&quot;&gt;&lt;del&gt;CXX-1707&lt;/del&gt;&lt;/a&gt; changed the C++ driver to use the new names of the&lt;br/&gt;
C driver. That implicitly requires the latest C driver to build&lt;br/&gt;
against. So, this change fall backs to the old package names&lt;br/&gt;
if the new ones are not found.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/bd49ba3a725ce877ca9037728ba362fdfd660dd9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/bd49ba3a725ce877ca9037728ba362fdfd660dd9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2413203" author="xgen-internal-githook" created="Mon, 9 Sep 2019 17:42:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;rcsanchez97&apos;, &apos;email&apos;: &apos;roberto@connexer.com&apos;, &apos;name&apos;: &apos;Roberto C. S&#225;nchez&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3047&quot; title=&quot;Export targets for CMake project&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3047&quot;&gt;&lt;del&gt;CDRIVER-3047&lt;/del&gt;&lt;/a&gt; export CMake targets&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6fa33f0b1f1c219e6e943061a21e391422f56d48&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6fa33f0b1f1c219e6e943061a21e391422f56d48&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2294739" author="ian@10gen.com" created="Mon, 24 Jun 2019 14:46:45 +0000"  >&lt;p&gt;putting this back into scheduled just to rank it below the libmongocrypt work (which is higher prio).&lt;/p&gt;</comment>
                            <comment id="2198864" author="roberto.sanchez" created="Tue, 2 Apr 2019 11:43:24 +0000"  >&lt;p&gt;Here is a summary of what remains for this task:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Replace the standard .cmake.in configuration template with a one-liner file containing a simple include directive (this is what is done in &lt;tt&gt;kms_message-config.cmake&lt;/tt&gt;)&lt;/li&gt;
	&lt;li&gt;Mark the exportable targets in &lt;tt&gt;CMakeLists.txt&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Tell CMake to actually install the exported targets (which creates and installs the file referenced by, e.g., &lt;tt&gt;kms_message-config.cmake&lt;/tt&gt;), using the namespace &apos;&lt;tt&gt;mongo::&lt;/tt&gt;&apos;&lt;/li&gt;
	&lt;li&gt;Consider updating consumers to use the simpler mechanism made available by the exported targets&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10720">
                    <name>Cloners</name>
                                            <outwardlinks description="clones">
                                        <issuelink>
            <issuekey id="661850">CXX-1707</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="856163">CDRIVER-3236</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="911400">MONGOCRYPT-87</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="987497">CDRIVER-3413</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="727874">MONGOCRYPT-140</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr7ccv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>