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

[chore] CMake: deprecate custom processor count logic #868

Merged
merged 2 commits into from Mar 17, 2019

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Mar 17, 2019

CMake 2.8.5 shipped with a built-in module.

Also quote KO_DOWNLOAD_DIR.

CMake 3 shipped with a built-in module.

Also quote `KO_DOWNLOAD_DIR`.
@Frenzie Frenzie requested a review from NiLuJe March 17, 2019 11:59
@Frenzie
Copy link
Member Author

Frenzie commented Mar 17, 2019

Today it looks like this: https://github.com/Kitware/CMake/blob/283330976f2379eec214bfe1d51a27c29cc1f8fc/Modules/ProcessorCount.cmake

For 3.5 it looks like this: https://github.com/Kitware/CMake/blob/64130a7e793483e24c1d68bdd234f81d5edb2d51/Modules/ProcessorCount.cmake

Either way, same idea but more complete with "automatic" updates & improvements.

Copy link
Member

@NiLuJe NiLuJe left a comment

Choose a reason for hiding this comment

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

LGTM! :)

include(ProcessorCount)
ProcessorCount(N)
# 0 if unknown
set(PROCESSOR_COUNT ${N})
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming N falls-back to 0, right? ;).

Copy link
Member

Choose a reason for hiding this comment

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

Yes it does (reading the links provided helps. :D).

@Frenzie Frenzie merged commit 9dd7333 into koreader:master Mar 17, 2019
@Frenzie Frenzie deleted the cmake-processorcount branch March 17, 2019 19:35
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Mar 18, 2019
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Mar 18, 2019
Frenzie pushed a commit to koreader/koreader that referenced this pull request Mar 18, 2019
* Properly account for MuPDF feeding us premultiplied alpha

* Bump base to pickup necessary backend changes

Also includes a bunch of CMake refactoring
(koreader/koreader-base#865
koreader/koreader-base#867
koreader/koreader-base#868)
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
…ader#4807)

* Properly account for MuPDF feeding us premultiplied alpha

* Bump base to pickup necessary backend changes

Also includes a bunch of CMake refactoring
(koreader/koreader-base#865
koreader/koreader-base#867
koreader/koreader-base#868)
@Frenzie Frenzie mentioned this pull request Apr 7, 2022
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.

None yet

2 participants