neovim/cmake
dundargoc 4c5c6ca800
build: various cmake fixes (#21902)
* build: various cmake refactors and simplifications

- Add STATUS keyword to message to ensure messages are shown in the
  correct order.
- Remove DEPS_CXX_COMPILER as we don't rely on C++ for any of our
  dependencies.
- Simplify how msgpack and luv configure options are constructed.
- Rely on the default installation for luv instead of manually passing
  configure, build and install commands.
- Simplify return code conditional.

* build: remove CMAKE_OSX_ARCHITECTURES_ALT_SEP workaround

CMAKE_OSX_ARCHITECTURES_ALT_SEP was defined as a workaround to prevent
the shell from interpreting `;`, which CMake uses as a list separator.
However, the same thing can be achieved by instead passing
CMAKE_OSX_ARCHITECTURES as a cache variable instead, which is a more
idiomatic way of achieving the same thing.

* build: define CMAKE_BUILD_TYPE before adding it to BUILD_TYPE_STRING

The problem with the current setup is that CMAKE_BUILD_TYPE is defined
after BUILD_TYPE_STRING. BUILD_TYPE_STRING will then be empty on the
first run, meaning that dependencies are built without a build type.
However, since CMAKE_BUILD_TYPE is a cache variable its value will
persist in subsequent runs. On the second run BUILD_TYPE_STRING will
have the correct value, but it's a different value from the ones the
dependencies were built with. This will force some dependencies to be
built again.

Fixes https://github.com/neovim/neovim/issues/21672.
2023-01-20 23:48:46 +01:00
..
CheckUncrustifyVersion.cmake build(lint): check uncrustify version #19468 2022-07-25 06:18:49 -07:00
ConvertPo.cmake
FindIconv.cmake build: use modern cmake (#21589) 2023-01-10 18:49:57 +01:00
FindLibIntl.cmake build(cmake): fix static libintl test on macOS 2022-06-29 02:19:42 +08:00
FindLibLUV.cmake build: prioritize statically built libluv in search 2021-08-14 06:53:52 -06:00
FindLibTermkey.cmake build: clean up / remove X_USE_STATIC (#10713) 2019-08-07 22:19:55 +02:00
FindLibUV.cmake build libuv cmake (#19632) 2022-08-12 16:59:40 +01:00
FindLIBVTERM.cmake build: rename CMake find modules for LibFindMacros #10928 2019-09-06 14:39:41 -07:00
FindLuaJit.cmake revert: "ci: remove mingw job #18580" 2022-05-17 17:07:45 +02:00
FindMsgpack.cmake build: clean up / remove X_USE_STATIC (#10713) 2019-08-07 22:19:55 +02:00
FindTreeSitter.cmake Align naming of FindTreeSitter cmake file and variables 2020-11-09 15:15:03 -05:00
FindUNIBILIUM.cmake build: rename CMake find modules for LibFindMacros #10928 2019-09-06 14:39:41 -07:00
Format.cmake build: add formatting targets for c and lua files (#19488) 2022-08-02 12:32:57 +02:00
GenerateVersion.cmake build: various cmake fixes (#21902) 2023-01-20 23:48:46 +01:00
GetCompileFlags.cmake build: use modern cmake (#21589) 2023-01-10 18:49:57 +01:00
InstallHelpers.cmake build: replace deprecated cmake features with their modern alternatives 2022-08-03 09:52:05 +02:00
LibFindMacros.cmake build: fix warning with passively available libintl (#10380) 2019-07-01 03:32:52 +02:00
LuaHelpers.cmake build: adjust some messages (#9087) 2018-10-06 18:45:34 +02:00
PreventInTreeBuilds.cmake build: prevent in-tree builds for the time being, as it's not supported 2016-10-11 20:20:31 -04:00
RunTests.cmake ci: add cirrus to isCI function to skip tests (#20526) 2022-10-17 17:16:31 +02:00
UninstallHelper.cmake build(cmake): simplify and speed up the uninstall target 2022-06-19 18:34:28 +02:00
Util.cmake build: exclude tui/terminfo_defs.h from lintc-clint (#21822) 2023-01-15 19:30:17 +01:00
WindowsDllCopy.cmake