Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: upgrade to Conan 2 (#2318) #2432

Closed
wants to merge 4 commits into from
Closed

cmake: upgrade to Conan 2 (#2318) #2432

wants to merge 4 commits into from

Conversation

battlmonstr
Copy link
Contributor

@battlmonstr battlmonstr commented Oct 19, 2024

extras:

  • refactor compiler_install.sh
  • reduce verbosity of cmake configuration output

"light" workflow jobs build time of conan (cmake configuration command):

gcc (linux-gcc-12-release) - no conan cache
- conan 1 - 2,6 min
- conan 2 - 2,5 min
clang (linux-clang-16-release) - no conan cache
- conan 1 - 3 min
- conan 2 - 13 min

gcc (linux-gcc-12-release) - with conan cache
- conan 1 - 0,3 min
- conan 2 - 0,23 min
clang (linux-clang-16-release) - with conan cache
- conan 1 - 0,25  min
- conan 2 - 0,22  min

conan 2 has no clang binaries for Linux, so the first build on clang has to build everything from source. That takes 10 min longer compared to conan 1 where we build only 2-3 libs from source. It is cached and then the build time is about equal.

@battlmonstr battlmonstr force-pushed the pr/conan2 branch 7 times, most recently from dff9cbd to 4cd9f6a Compare October 23, 2024 15:14
@battlmonstr battlmonstr force-pushed the pr/conan2 branch 3 times, most recently from 315dfa6 to f06b021 Compare December 9, 2024 09:32
@battlmonstr battlmonstr force-pushed the pr/conan2 branch 4 times, most recently from efd3ba9 to 4396382 Compare December 13, 2024 08:25
A prerequisite for Conan 2 (to have a newer cmake version).

extra:
* add COMMAND_ERROR_IS_FATAL to execute_process, otherwise it may silently fail
* install cmake-format with --user
@battlmonstr
Copy link
Contributor Author

superseded by #2607

@battlmonstr battlmonstr deleted the pr/conan2 branch December 16, 2024 13:29
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.

1 participant