neovim/cmake.deps/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
..
BuildGettext.cmake build: rely on default cmake installation if possible 2022-10-21 11:48:12 +02:00
BuildLibiconv.cmake build: rely on default cmake installation if possible 2022-10-21 11:48:12 +02:00
BuildLibtermkey.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildLibuv.cmake build(deps): add build type for libuv (#20575) 2022-10-10 17:51:10 +02:00
BuildLibvterm.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildLua.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildLuajit.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildLuarocks.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildLuv.cmake build: various cmake fixes (#21902) 2023-01-20 23:48:46 +01:00
BuildMsgpack.cmake build: various cmake fixes (#21902) 2023-01-20 23:48:46 +01:00
BuildTreesitter.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildTreesitterParsers.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
BuildUnibilium.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
CopyFilesGlob.cmake build: rename build-related dirs 2022-06-28 04:02:29 -07:00
GetBinaryDeps.cmake build(deps): restore support for USE_EXISTING_SRC_DIR (#20491) 2022-10-06 15:14:38 +02:00
GettextCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00
LibiconvCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00
libtermkeyCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00
Libvterm-tbl2inc_c.cmake build: bump minimum CMake version in cmake.deps 2022-07-19 07:02:51 -04:00
LibvtermCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00
RemoveFiles.cmake build: rename build-related dirs 2022-06-28 04:02:29 -07:00
TreesitterCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00
TreesitterParserCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00
UnibiliumCMakeLists.txt build(cmake): add modelines to enable syntax highlighting 2022-10-21 11:48:12 +02:00