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] Update CMake to modern style with lowercase commands #872

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Mar 19, 2019

As luck would have it, modern post-2012 preferred CMake style agrees with my own sensibilities, but it's mainly the consistency that concerns me.

I didn't have to come up with anything from scratch. I simply ran the two commands given in these two commits:

As luck would have it, modern post-2012 preferred CMake style agrees with my own sensibilities, but it's mainly the consistency that concerns me.

I didn't have to come up with anything from scratch. I simply ran the two commands given in these two commits:

* <https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=77543bd>.
  > Ancient CMake versions required upper-case commands.  Later command names became case-insensitive.  Now the preferred style is lower-case.

* <https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9db31162>.
  > Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block.  This is no longer the preferred style.
@Frenzie Frenzie requested a review from NiLuJe March 19, 2019 13:49
@Frenzie Frenzie merged commit 4d412ee into koreader:master Mar 21, 2019
@Frenzie Frenzie deleted the cmake-modern-style branch March 21, 2019 07:09
Frenzie added a commit to Frenzie/koreader that referenced this pull request Mar 21, 2019
See koreader#4826 (comment)

Also some Makefile/CMake sanity/cleanup/style/refactoring.

Includes:

* [build] Move Android ZLIB_LDFLAGS to thirdparty/zlib koreader/koreader-base#870
* [chore] Update CMake to modern style with lowercase commands koreader/koreader-base#872
* [fix] Add util.ffiLoadCandidates to try multiple SDL2 library names koreader/koreader-base#873
* [fix] Return fail status for SDL koreader/koreader-base#874
* [chore] Makefile: declare all phonies koreader/koreader-base#875
* [chore] Remove luajit-clean target koreader/koreader-base#876
* [chore] CMake kpvcrlib convert remaining tabs to four spaces koreader/koreader-base#877
Frenzie added a commit to koreader/koreader that referenced this pull request Mar 21, 2019
See #4826 (comment)

Also some Makefile/CMake sanity/cleanup/style/refactoring.

Includes:

* [build] Move Android ZLIB_LDFLAGS to thirdparty/zlib koreader/koreader-base#870
* [chore] Update CMake to modern style with lowercase commands koreader/koreader-base#872
* [fix] Add util.ffiLoadCandidates to try multiple SDL2 library names koreader/koreader-base#873
* [fix] Return fail status for SDL koreader/koreader-base#874
* [chore] Makefile: declare all phonies koreader/koreader-base#875
* [chore] Remove luajit-clean target koreader/koreader-base#876
* [chore] CMake kpvcrlib convert remaining tabs to four spaces koreader/koreader-base#877
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
See koreader#4826 (comment)

Also some Makefile/CMake sanity/cleanup/style/refactoring.

Includes:

* [build] Move Android ZLIB_LDFLAGS to thirdparty/zlib koreader/koreader-base#870
* [chore] Update CMake to modern style with lowercase commands koreader/koreader-base#872
* [fix] Add util.ffiLoadCandidates to try multiple SDL2 library names koreader/koreader-base#873
* [fix] Return fail status for SDL koreader/koreader-base#874
* [chore] Makefile: declare all phonies koreader/koreader-base#875
* [chore] Remove luajit-clean target koreader/koreader-base#876
* [chore] CMake kpvcrlib convert remaining tabs to four spaces koreader/koreader-base#877
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

1 participant