github conan-io/conan 1.48.0
1.48.0 (03-May-2022)

latest releases: 2.9.2, 2.9.1, 2.9.0...
2 years ago
  • 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 declares folders.generators = "build/generators" that is common for different configurations, enabling CMakePresets.json to support different configurePresets and buildPresets for single-config and multi-config generators. (#11117). Docs: 📃
  • Feature: The CMakeToolchain generator will create (if missing) a CMakeUserPresets.json if the CMakeLists.txt file is found in the root folder of the project. That file will include automatically the CMakePresets.json file contained at build/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 the conan_toolchain.cmake anymore, the configuration is moved to the CMakePresets.json preparing Conan to support multiple "single-config" configurations in one CMakePresets.json file (#11112). Docs: 📃
  • Feature: The CMakePresets.json (file generated when specified the CMakeToolchain generator) is appended with a new buildPresets after a conan install with a different build_type when using a multiconfiguration generator like Visual Studio. (#11103). Docs: 📃
  • Feature: Removed PlatformToolset and added conantoolchain.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 and tools.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 the Autotools build helper constructor. (#10978). Docs: 📃
  • Feature: Replaced add_definitions by add_compile_definitions in conan.tools.cmake.* package. (#10974)
  • Feature: Added cxxflags, cflags, and ldflags attributes to MSBuildToolchain. (#10972). Docs: 📃
  • Feature: Added mechanism to inject extra flags to MSBuildToolchain via [conf]. (#10972). Docs: 📃
  • Fix: Allow Version(self.settings.compiler.version) to work for new 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 to self.export_source_folder. That variable was introduced to reference the folder where the export_sources are. Currently, they are copied to the source folder but might be changed in the future to avoid copying them, so self.export_source_folder will always point to the folder containing the exports_sources. (#11055). Docs: 📃
  • Fix: Ensure correct order for libraries in AutotoolsDeps. (#11054)
  • Fix: Escape quotes in XCodeDeps generator. (#11039)
  • Fix: The CMakeDeps generator now set INTERFACE_LINK_DIRECTORIES necessary when using auto link '#pragma comment(lib, "foo")' when the required library sets the property cmake_set_interface_link_directories. (#10984). Docs: 📃
  • Fix: Renamed variables from the CMakeToolchain context in blocks to be all lowercase. e.g: CMAKE_OSX_ARCHITECTURES to cmake_osx_architectures. (#10981)
  • Bugfix: Avoid BazelDeps to find a library when a directory with the same name exists. (#11090)
  • Bugfix: The binaryDir field at CMakePresets.json is not set if the conanfile.build_folder is not available, avoiding a null value breaking the specification. (#11088)
  • Bugfix: Fixed unziping while using tools.get or tools.unzip with the strip_root=True in a tgz file with hardlinks inside. (#11074)
  • Bugfix: The method get_commit from the new conan.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 the version field of the dependencies when the layout() 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)

Don't miss a new conan release

NewReleases is sending notifications on new releases.