- Feature: Do not recommend to set
PKG_CONFIG_PATH
in markdown generator any more as it is already set by the AutotoolsToolchain. (#11120) - Feature: The
cmake_layout
declaresfolders.generators = "build/generators"
that is common for different configurations, enablingCMakePresets.json
to support differentconfigurePresets
andbuildPresets
for single-config and multi-config generators. (#11117). Docs: 📃 - Feature: The
CMakeToolchain
generator will create (if missing) aCMakeUserPresets.json
if theCMakeLists.txt
file is found in the root folder of the project. That file will include automatically theCMakePresets.json
file contained atbuild/generators
folder to allow CMake and IDEs to locate automatically the presets generated by Conan. (#11117). Docs: 📃 - Feature: The
CMAKE_BUILD_TYPE
is not adjusted in theconan_toolchain.cmake
anymore, the configuration is moved to theCMakePresets.json
preparing Conan to support multiple "single-config" configurations in oneCMakePresets.json
file (#11112). Docs: 📃 - Feature: The
CMakePresets.json
(file generated when specified theCMakeToolchain
generator) is appended with a newbuildPresets
after aconan install
with a differentbuild_type
when using a multiconfiguration generator likeVisual Studio
. (#11103). Docs: 📃 - Feature: Removed
PlatformToolset
and addedconantoolchain.props
from*.vcxproj
file. (#11101) - Feature: Append the folder where the Conan generators were installed to
PKG_CONFIG_PATH
in AutotoolsToolchain. (#11063). Docs: 📃 - Feature: Adding new
tools.env.virtualenv:powershell
conf to opt-in to generate and use powershell scripts instead of .bat ones. (#11061). Docs: 📃 - Feature: Added new configuration fields:
tools.apple:enable_bitcode
,tools.apple:enable_arc
andtools.apple:enable_visibility
. (#10985). Docs: 📃 - Feature: Added new mechanism to inject common Xcode flags in
CMakeToolchain
generator if enabled Bitcode, ARC, or Visibility configurations. (#10985). Docs: 📃 - Feature: New templates for autotools exe and lib. (#10978). Docs: 📃
- Feature: Change
build_script_folder
argument from the configure to theAutotools
build helper constructor. (#10978). Docs: 📃 - Feature: Replaced
add_definitions
byadd_compile_definitions
inconan.tools.cmake.*
package. (#10974) - Feature: Added
cxxflags
,cflags
, andldflags
attributes toMSBuildToolchain
. (#10972). Docs: 📃 - Feature: Added mechanism to inject extra flags to
MSBuildToolchain
via[conf]
. (#10972). Docs: 📃 - Fix: Allow
Version(self.settings.compiler.version)
to work fornew
tools.scm.Version``. (#11119) - Fix: Make shared libraries build with Autotools relocatable in Macos by patching the install name (LC_ID_DYLIB) and setting to
@rpath/libname.dylib
. (#11114). Docs: 📃 - Fix: using CMAKE_PROJECT_INCLUDE instead of presets to define variables that don't work in toolchains (#11098)
- Fix: Fix quote escaping for defines in pkg_config generator. (#11073)
- Fix: Fix quote escaping for defines in PkgConfigDeps generator. (#11073)
- Fix: Quote
add_compile_definitions
correctly in CMakeToolchain. (#11057) - Fix: Escape quotes in definitions in CMakeToochain. (#11057)
- Fix: Renamed
self.base_source_folder
toself.export_source_folder
. That variable was introduced to reference the folder where theexport_sources
are. Currently, they are copied to thesource
folder but might be changed in the future to avoid copying them, soself.export_source_folder
will always point to the folder containing theexports_sources
. (#11055). Docs: 📃 - Fix: Ensure correct order for libraries in AutotoolsDeps. (#11054)
- Fix: Escape quotes in XCodeDeps generator. (#11039)
- Fix: The
CMakeDeps
generator now setINTERFACE_LINK_DIRECTORIES
necessary when using auto link'#pragma comment(lib, "foo")'
when the required library sets the propertycmake_set_interface_link_directories
. (#10984). Docs: 📃 - Fix: Renamed variables from the
CMakeToolchain
context in blocks to be all lowercase. e.g:CMAKE_OSX_ARCHITECTURES
tocmake_osx_architectures
. (#10981) - Bugfix: Avoid
BazelDeps
to find a library when a directory with the same name exists. (#11090) - Bugfix: The
binaryDir
field atCMakePresets.json
is not set if theconanfile.build_folder
is not available, avoiding anull
value breaking the specification. (#11088) - Bugfix: Fixed unziping while using
tools.get
ortools.unzip
with thestrip_root=True
in atgz
file with hardlinks inside. (#11074) - Bugfix: The method
get_commit
from the newconan.tools.scm.Git
was capturing a wrong commit, for example, ignoring commits in subfolders when checking the parent folder. (#11015) - Bugfix: The
json
generator was showing "None" in theversion
field of the dependencies when thelayout()
method was used. (#10960) - Bugfix: The config
default_python_requires_id_mode=unrelated_mode
raised an error, it has been fixed. (#10959) - Bugfix: The CMakeToolchain now declares
CACHE BOOL
variables when a bool is stored in a variable:toolchain.variables["FOO"] = True
. (#10941)