Skip to content

Commit b81c5d6

Browse files
committed
[futurepress#111] Clearly message CMake v3.30.0 as unsupported
1 parent dde4d4b commit b81c5d6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
project(rn-static-server C)
22
cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)
33

4+
if (CMAKE_VERSION MATCHES "3.30.0")
5+
message(FATAL_ERROR "CMake v3.30.0 is not supported: https://github.com/birdofpreyru/react-native-static-server/issues/111")
6+
endif()
7+
48
# This prevents CMake from complaining that INSTALL(..) directives in
59
# Lighttpd CMakeLists.txt miss BUNDLE DESTINATION.
610
set(CMAKE_MACOSX_BUNDLE OFF)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ and [old][Old Architecture] RN architectures.
141141
```shell
142142
$ brew install cmake pkg-config
143143
```
144+
**BEWARE:** [**CMake v3.30.0** breaks the library build](https://github.com/birdofpreyru/react-native-static-server/issues/111)
145+
because of a regression on CMake side — be sure to use a different
146+
version (v3.22.1–3.29.6 at the moment of writing).
147+
144148
**IMPORTANT:** [Homebrew] should have added `eval "$(/opt/homebrew/bin/brew shellenv)"'`
145149
command to your `.zshrc` or `.bashrc`. Although this works for interactive terminals,
146150
it might not work for sessions inside of other apps, such as XCode, therefore you might need to

0 commit comments

Comments
 (0)