<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01: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-1173] Support users adding mongocxx as a CMake subdirectory</title>
                <link>https://jira.mongodb.org/browse/CXX-1173</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Originally from &lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/o1EY6obwcm4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this Google Group post&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I&apos;m trying to include  mongo-cxx-driver  into my CMake project.&lt;/p&gt;

&lt;p&gt;Here is part of my root CMakeLists.txt&lt;/p&gt;

&lt;p&gt;project(testprj)&lt;br/&gt;
add_subdirectory(libbson)&lt;br/&gt;
add_subdirectory(mongo-c-driver)&lt;br/&gt;
add_subdirectory(mongo-cxx-driver)&lt;/p&gt;


&lt;p&gt;While libbson, and mongo-c-driver compiles without problems, mongo-cxx-driver returns errors. It seams CMake cannot locate mongo-c-driver.&lt;/p&gt;

&lt;p&gt;CMake Error at mongo-cxx-driver/src/mongocxx/CMakeLists.txt:23 (find_package):&lt;br/&gt;
  By not providing &quot;FindLibMongoC.cmake&quot; in CMAKE_MODULE_PATH this project&lt;br/&gt;
  has asked CMake to find a package configuration file provided by&lt;br/&gt;
  &quot;LibMongoC&quot;, but CMake did not find one.&lt;/p&gt;

&lt;p&gt;  Could not find a package configuration file provided by &quot;LibMongoC&quot;&lt;br/&gt;
  (requested version 1.5.0) with any of the following names:&lt;/p&gt;

&lt;p&gt;    LibMongoCConfig.cmake&lt;br/&gt;
    libmongoc-config.cmake&lt;/p&gt;

&lt;p&gt;  Add the installation prefix of &quot;LibMongoC&quot; to CMAKE_PREFIX_PATH or set&lt;br/&gt;
  &quot;LibMongoC_DIR&quot; to a directory containing one of the above files.  If&lt;br/&gt;
  &quot;LibMongoC&quot; provides a separate development package or SDK, be sure it has&lt;br/&gt;
  been installed.&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="339537">CXX-1173</key>
            <summary>Support users adding mongocxx as a CMake subdirectory</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="9">Done</resolution>
                                        <assignee username="roberto.sanchez@mongodb.com">Roberto Sanchez</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                            <label>internal-woes</label>
                    </labels>
                <created>Fri, 16 Dec 2016 22:03:53 +0000</created>
                <updated>Wed, 1 Feb 2023 12:53:39 +0000</updated>
                            <resolved>Wed, 9 Sep 2020 16:25:36 +0000</resolved>
                                                    <fixVersion>3.7.0</fixVersion>
                    <fixVersion>3.7.0-beta1</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="3383408" author="xgen-internal-githook" created="Wed, 9 Sep 2020 16:24:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Roberto C. S&#225;nchez&apos;, &apos;email&apos;: &apos;roberto@connexer.com&apos;, &apos;username&apos;: &apos;rcsanchez97&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1173&quot; title=&quot;Support users adding mongocxx as a CMake subdirectory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1173&quot;&gt;&lt;del&gt;CXX-1173&lt;/del&gt;&lt;/a&gt; support integration via CMake add_subdirectory()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/da9ba45a1d64f63e10e0749116486b541bb71e91&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/da9ba45a1d64f63e10e0749116486b541bb71e91&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2338946" author="redbeard0531" created="Tue, 23 Jul 2019 14:43:30 +0000"  >&lt;p&gt;Can this be scheduled then? It is fairly difficult to consume the C++ driver right now. It can&apos;t be integrated with a common cmake build tree, and requires separately building and installing the driver before it can be used. At the very least we should make it possible to consume the driver(s) directly from the source+build tree after building without an install step to yet another location, but making it possible to have a unified single-command build tree would be even better.&lt;/p&gt;</comment>
                            <comment id="2338840" author="roberto.sanchez" created="Tue, 23 Jul 2019 14:15:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=redbeard0531&quot; class=&quot;user-hover&quot; rel=&quot;redbeard0531&quot;&gt;redbeard0531&lt;/a&gt;, The short answer is, &quot;no.&quot;  The work for &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; (which is currently in progress alongside &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;) will improve the CMake package configuration scripts to provide proper CMake targets instead of just autoconf-style variables pointing to the locations of includes and libraries.  That improvement could be further built upon to provide the functionality described in this ticket, but it would most likely require additional work.  &lt;/p&gt;</comment>
                            <comment id="2338367" author="redbeard0531" created="Tue, 23 Jul 2019 09:44:34 +0000"  >&lt;p&gt;Will this be handled by &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;?&lt;/p&gt;</comment>
                            <comment id="1460292" author="jwang" created="Fri, 16 Dec 2016 22:11:10 +0000"  >&lt;p&gt;I would recommend using CMake&apos;s External Project (&lt;tt&gt;include(ExternalProject)&lt;/tt&gt;, &lt;tt&gt;externalproject_add()&lt;/tt&gt;) functionality instead of directly importing the source code into the project. This way, you can include the MongoDB C/C++ tar.gz archive in your project and specify commands to configure and build MongoDB.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1373625">CXX-2036</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="308577">CXX-991</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1461959">CXX-2104</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1457871">CDRIVER-3783</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CXX-1861</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrc85b:</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>