<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:39 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>[CXX-1707] Export targets for CMake project</title>
                <link>https://jira.mongodb.org/browse/CXX-1707</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;&#160;&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="661850">CXX-1707</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="amit.ambasta@delhivery.com">Amit Ambasta</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Dec 2018 08:06:42 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:18 +0000</updated>
                            <resolved>Mon, 23 Sep 2019 11:26:27 +0000</resolved>
                                                    <fixVersion>3.5.0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2678571" author="xgen-internal-githook" created="Fri, 27 Dec 2019 13:26:16 +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="2427823" author="xgen-internal-githook" created="Mon, 23 Sep 2019 11:25:34 +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/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; export CMake targets&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/54f2d69374bc45f8d17eb5dda1ca5576e678f1fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/54f2d69374bc45f8d17eb5dda1ca5576e678f1fc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2294742" author="ian@10gen.com" created="Mon, 24 Jun 2019 14:47:19 +0000"  >&lt;p&gt;same as C work for targets - &quot;scheduled&quot; to put below libmongocrypt.&lt;/p&gt;</comment>
                            <comment id="2198863" author="roberto.sanchez" created="Tue, 2 Apr 2019 11:43:18 +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>
                            <comment id="2161556" author="kevin.albertson" created="Mon, 25 Feb 2019 15:37:08 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=amit.ambasta%40delhivery.com&quot; class=&quot;user-hover&quot; rel=&quot;amit.ambasta@delhivery.com&quot;&gt;amit.ambasta@delhivery.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Apologies for the delay. We haven&apos;t forgotten about this and we&apos;ll come back to this after some higher priority work on the C driver.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10720">
                    <name>Cloners</name>
                                                                <inwardlinks description="is cloned by">
                                        <issuelink>
            <issuekey id="724824">CDRIVER-3047</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <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|hu7mcv:</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>