github conan-io/conan 1.51.0
1.51.0 (28-Jul-2022)

latest releases: 2.3.0, 2.2.3, 1.64.0...
21 months ago
  • Feature: Update system package manager db right before install, instead before check (#11716)
  • Feature: Do the package manager update just in mode install and ignore if mode is check. (#11712). Docs: 📃
  • Feature: The AutotoolsToolchain attributes .cxxflags, .cflags, .ldflags and .defines can be read at any moment, now is not needed to call .environment() to get them calculated. In the other hand, if you want to add additional flags the following attributes have to be used: .extra_cxxflags, .extra_cflags, .extra_ldflags and .extra_defines (#11678). Docs: 📃
  • Feature: Changed CMakeDeps generator so the global target made for a package with components is a target linked with the targets of the components, instead of a target made from merging cpp_info objects from the components. (#11673). Docs: 📃
  • Feature: Support for components in MSBuildDeps. (#11669). Docs: 📃
  • Feature: The CMakePreset.json now contains toolset and architecture items when using Ninja generator and msvc compiler so the IDE (Visual Studio) can set the correct compiler (vcvars) automatically. (#11666)
  • Feature: Introduced a new conf tools.cmake.cmaketoolchain.presets:max_schema_version to generate CMakePresets.json and CMakeUserPresets.json compatible with the specified json schema version. The minimum value supported is >=2. (#11655). Docs: 📃
  • Feature: Added objc_args/objc_link_args/objcpp_args/objcpp_link_args to MesonToolchain for Objective-C/C++ language. (#11632). Docs: 📃
  • Feature: Adding default directories to MesonToolchain. (#11618). Docs: 📃
  • Feature: Provide Path accessors in Conanfile. (#11585)
  • Feature: Introduced a validate_build() method in the recipes to validate if the package can be built according to self.settings and self.options instead of self.info.settings and self.info.options that it is used to validate the binary. (#11580). Docs: 📃
  • Feature: Add ability to download files in the local filesystem using file:// URIs. (#11569). Docs: 📃
  • Feature: Added MesonDeps as a new generator to create an extra file with all the GNU flags from all the dependencies. Meson build-helper will add that one (if exists) to complement the created one by MesonToolchain. (#11557). Docs: 📃
  • Feature: Added a new self.folders.subproject for layout() to be able to define layouts that goes up to the parent or siblings folders, together with the self.folders.root = "..". (#11556). Docs: 📃
  • Feature: Adding new msys2_ucrt64, msys2_mingw64, msys2_clang64 subsystems in os.subsystem for Windows. (#11530)
  • Fix: Add conan.tools.scm as hidden-import to pyinstaller.py, so it is bundled with the installer. (#11677)
  • Fix: The cmake_build_modules property can only be declared in the self.cpp_info, not in components, where will be ignored. (#11673). Docs: 📃
  • Fix: Fix Dnf and Yum to accept 100 as a return code. (#11668)
  • Fix: Get the cpu count for cgroup2 from /sys/fs/cgroup/cpu.max. (#11667). Docs: 📃
  • Fix: Improve opensuse detection in tool.system.package_manager. (#11660)
  • Fix: Add raspbian to default tools.system.package_manager package manager mapping. (#11654). Docs: 📃
  • Fix: Allow templates for conan new to contain Readme.md and LICENSE.txt files. (#11645)
  • Fix: Remove conan_message() in CMakeDeps. (#11625)
  • Fix: In conans.tools.collect_libs and conan.tools.files.collect_libs, avoids to list other flavors (version, soversion) of the same dylib on macOS, so that behavior is consistent on Linux & macOS. (#11527). Docs: 📃
  • Bugfix: The AutotoolsToolchain now clears None values from the attributes .cxxflags, .cflags, .ldflags and .defines. (#11678). Docs: 📃
  • Bugfix: The CMakePresets.json file contained invalid paths (mixing / and \) for Windows that caused issues when using Visual Studio. (#11652)
  • BugFix: Avoid LocalDebuggerEnv overflows in MSBuildDeps due to addition of PATH env-var. (#11631)
  • Bugfix: Fix frameworkdirs not taken into account in XcodeDeps generator. (#11617)
  • Bugfix: CMakeToolchain avoid setting CMAKE_INSTALL_XXX variables if the values are not defined. (#11614)
  • Bugfix: Use correct build target in CMake.test() for the Ninja Multi-Config generator. (#11594)
  • Bugfix: The CMakeToolchain was crashing when building for Android os a package that is removing the compiler.libcxx (C library). (#11586)

Don't miss a new conan release

NewReleases is sending notifications on new releases.