Skip to content

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Sep 12, 2022

Specify library name and version: lib/1.0

This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

Copy link
Contributor

@jellespijker jellespijker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot
Copy link
Contributor

All green in build 2 (7ca26933d171fb021706b7532f4d3d6ad56c8fb6):

  • ninja/1.11.0@:
    All packages built successfully! (All logs)

  • ninja/1.10.2@:
    All packages built successfully! (All logs)

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot conan-center-bot merged commit 2128eb4 into conan-io:master Sep 15, 2022
@SpaceIm SpaceIm deleted the ninja-conan-v2 branch September 15, 2022 06:25
ericLemanissier pushed a commit to ericLemanissier/cocorepo that referenced this pull request Sep 26, 2022
self.cpp_info.includedirs = []
self.cpp_info.libdirs = []
self.cpp_info.resdirs = []
self.conf_info.define("tools.cmake.cmaketoolchain:generator", "Ninja")
Copy link
Contributor Author

@SpaceIm SpaceIm Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uilianries @SSE4 @prince-chrismc I believe now that the conan v1 logic CONAN_CMAKE_GENERATOR in this recipe shouldn't have been ported to conan v2. It's not the responsibility of ninja recipe to decide whether CMake generator (or Meson backend) should be Ninja, even if it's in tool_requires.

If there was a tools.ninja:path conf in conan, yes for sure ninja recipe should override it, but changing the behavior of another tool is too much.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a user's personal preference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, so it should be removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why else would you add it as a requirement? They choose to add it 99% would be to use it... 🤔

Leave it uless it becomes a problem.

It need more complaints

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may add it e.g. for some meson dependency. but if it suddenly influences on your CMake project by silently changing the generator, it may become a problem. for instance, if library output name depends on generator.
if you add both ninja and make as build requirements in your profile, they will start fighting for the CMake generator.
if it's a personal preference by design, it shouldn't be silently activated from a random dependency in your graph.

datalogics-robb pushed a commit to datalogics-robb/conan-center-index that referenced this pull request Mar 6, 2023
…develop

* 'master' of github.com:conan-io/conan-center-index: (801 commits)
  (conan-io#12310) Update qxmpp to use Qt 6.2.4
  (conan-io#12960) [bot] Add Access Request users (2022-09-15)
  (conan-io#12959) [linter] Convert import ConanFile from conans into an error
  (conan-io#12816) Add bandit
  (conan-io#12922) gemmlowp: conan v2 support
  (conan-io#12725) update drogon to 1.8.0
  (conan-io#12910) bump dependencies of vulkan-validationlayers; partial conan v2 upgrade
  (conan-io#12920) wslay: conan v2 support
  (conan-io#12945) [docs] Hotfix replace wrong cmake method in docs
  (conan-io#12940) cpp-httplib: add version 0.11.2
  (conan-io#12937) [flatbuffers] Add 2.0.6
  (conan-io#12936) [xnnpack] Add cci.20220801
  (conan-io#12934) docs: 2.0 migration guidance for subfolders
  (conan-io#12932) aws-c-cal: add 0.5.19 + conan v2 support + improve build on Apple
  (conan-io#12927) aws-checksums: conan v2 support
  (conan-io#12926) aws-c-compression: conan v2 support
  (conan-io#12925) add parson/1.4.0
  (conan-io#12921) fast-cdr: conan v2 support
  (conan-io#12918) ninja: conan v2 support & drop 1.9.0
  (conan-io#12917) voropp: conan v2 support + fix download of source code
  ...

 Conflicts:
	recipes/cmake/3.x.x/conanfile.py
	recipes/doxygen/all/conanfile.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants