Skip to content

Commit

Permalink
msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Jan 19, 2021
1 parent 5db3245 commit 7a14d0e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
8 changes: 7 additions & 1 deletion integrations/build_system/cmake.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
.. _cmake:
.. _cmake_integration:

|cmake_logo| CMake
==================

Conan can be integrated with CMake using generators, build helpers and custom *findXXX.cmake* files:

However, beware of some current CMake limitations, such as not dealing well with find-packages, because CMake doesn't know how to handle finding both debug and release packages.

.. note::

If you want to use the Visual Studio 2017 + CMake integration, :ref:`check this how-to<visual2017_cmake_howto>`


.. toctree::
:maxdepth: 2
Expand Down
21 changes: 7 additions & 14 deletions integrations/build_system/msbuild.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,17 @@
|visual_logo| MSBuild (Visual Studio)
=====================================

Conan can be integrated with **MSBuild**, the build system of Visual Studio in two different ways:
If you are using CMake to generate your Visual Studio projects, this is not the right section, go to :ref:`cmake_integration` instead.
This section is about native integration with Microsoft MSBuild, using properties files.

- Using the ``cmake`` generator to create a *conanbuildinfo.cmake* file.
- Using the ``visual_studio`` generator to create a *conanbuildinfo.props* file.
Conan can be integrated with **MSBuild** natively, the build system of Visual Studio in different ways:

With CMake
----------

Use the ``cmake`` generator or ``cmake_multi`` if you are using CMake to machine-generate your Visual Studio projects.
- Using the ``conan.tools.microsoft`` tools: ``MSBuildDeps``, ``MSBuildToolchain`` and ``MSBuild`` helpers to generate properties
files for your project, containing information about the project dependencies and toolchain. This is the new integration that is
experimental but will become the standard one in Conan 2.0. Go to :ref:`conan.tools.microsoft` for more information.
- Using the ``visual_studio`` or ``visual_studio_multi`` generators to create a MSBuild properties *conanbuildinfo.props* file.

Check the :ref:`generators` section to read about the ``cmake`` generator.
Check the official `CMake docs`_ to find out more about generating Visual Studio projects with CMake.

However, beware of some current CMake limitations, such as not dealing well with find-packages, because CMake doesn't know how to handle finding both debug and release packages.

.. note::

If you want to use the Visual Studio 2017 + CMake integration, :ref:`check this how-to<visual2017_cmake_howto>`

With *visual_studio* generator
------------------------------
Expand Down

0 comments on commit 7a14d0e

Please sign in to comment.