Skip to content

Upgrade CMake practices#1127

Draft
ghostflyby wants to merge 79 commits intorime:masterfrom
ghostflyby:cmake
Draft

Upgrade CMake practices#1127
ghostflyby wants to merge 79 commits intorime:masterfrom
ghostflyby:cmake

Conversation

@ghostflyby
Copy link

Pull request

based on #749

Issue tracker

Fixes will automatically close the related issue

Fixes #

Feature

  • use CONFIG mode find_package when possible
  • provide Rime::rime target for library consumers, with old variables kept
  • use standard BUILD_TESTING option

Unit test

  • Done

Manual test

  • Done

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

I plan to introduce vcpkg as package manager and remove many platform-specific scripts for vendored-dependency handling, but I don't know whether that's acceptable for merge.

WhiredPlanck and others added 30 commits October 28, 2023 16:10
Also change the condition: only not to install on Android since Android doesn't support pkgconfig yet.
Also rename option BUILD_STATIC to WITH_STATIC_DEPS to make people more aware of its role
So that we are able to link them by their namespace/target name
# Conflicts:
#	.github/workflows/windows-build.yml
#	CMakeLists.txt
#	build-clang.bat
#	cmake/FindYamlCpp.cmake
#	src/rime/setup.cc
#	test/CMakeLists.txt
# Conflicts:
#	.github/workflows/windows-build.yml
#	CMakeLists.txt
#	build-clang.bat
#	cmake/FindYamlCpp.cmake
#	src/rime/setup.cc
#	test/CMakeLists.txt
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.

2 participants