@ -174,6 +174,7 @@ distributions might set that definition to 0 by default. In case you get linking
algorithms when bringing the Exiv2 dependencies with conan, this might indicate a mismatch between the value set in
**compiler.libcxx** and the default values used in your distribution.
[TOC](#TOC)
<nameid="2-2"></a>
### 2.2) Visual Studio Notes
@ -218,7 +219,6 @@ CMake provides 4 Generators. The 64 and 32 bit Generators have different names:
### Recommended settings for Visual Studio
##### 64 bit Release Build
| | Visual Studio 2015 | Visual Studio 2017|
@ -253,22 +253,27 @@ CMake provides 4 Generators. The 64 and 32 bit Generators have different names:
| _**profile**_ | arch=x86 | arch=x86 |
| | arch_build=x86 | arch_build=x86 |
### Modifying build settings in the Visual Studio IDE
##### Static Builds
The default (and recommended) builds of Exiv2 and sample applications build and use DLLs. If you wish to build static applications and libraries, you will need to set the correct "C" run-time library to be linked both to your code and dependencies being built/downloaded by conan.
**CAUTION** You can change the runtime library in Visual Studio once you open the
solution generated by CMake. If you have generated a project to use the dynamic run-time library
with the profile setting `compiler.runtime=MD` (or MDd), Visual Studio allows you to change that setting.
However the libraries (provided by conan) to which you link are tied
to a specific configuration and you will obtain linking errors.
| Static Release | Static Debug |
|:---------|:-------------------|
| compiler.runtime=MT | compiler.runtime=MTd |
If you want to work with the static runtime library `MT` (or `MTd`), set up the profiles and build in a different directory such as build-static.
Additionally, you will have to use the cmake option -DBUILD\_SHARED\_LIBS=Off to
```
$ cmake -DBUILD_SHARED_LIBS=Off ..
```
### Changing profile settings with the conan command
It is recommended that you create 8 profiles for msvc{2017|2015}{Release|Debug}{64|32}.
You can modify profile settings on the command line.
The following example demonstrates making substantial changes to profile settings by performing a 32 bit build using Visual Studio 2015 with a 2017 profile!
The following example demonstrates making substantial changes to profile settings by performing a 32 bit build using Visual Studio 2015 with a 2017 profile! This example is not considered good practice, it is an illustration to some conan flexibility which be useful when your build environment is automated.
Exiv2 can perform I/O using internet protocols such as https, https, ftp and ssh.
The feature is disabled by default. You will need to instruct conan to build/download necessary libraries (curl, openssl and libssh) and tell CMake to link to the libraries.