Browse Source

Update the minimum required CMake version in more places

Co-authored-by: Steve Lhomme <robux4@ycbcr.xyz>
develop
Steve Lhomme Tom Poole 2 months ago
parent
commit
a38428aa8b
5 changed files with 9 additions and 10 deletions
  1. +1
    -1
      README.md
  2. +5
    -6
      docs/CMake API.md
  3. +1
    -1
      examples/CMake/AudioPlugin/CMakeLists.txt
  4. +1
    -1
      examples/CMake/ConsoleApp/CMakeLists.txt
  5. +1
    -1
      examples/CMake/GuiApp/CMakeLists.txt

+ 1
- 1
README.md View File

@@ -35,7 +35,7 @@ For further help getting started, please refer to the JUCE

### CMake

Version 3.15 or higher is required. To use CMake, you will need to install it,
Version 3.22 or higher is required. To use CMake, you will need to install it,
either from your system package manager or from the [official download
page](https://cmake.org/download/). For comprehensive documentation on JUCE's
CMake API, see the [JUCE CMake documentation](/docs/CMake%20API.md). For


+ 5
- 6
docs/CMake API.md View File

@@ -2,7 +2,7 @@

## System Requirements

- All project types require CMake 3.15 or higher.
- All project types require CMake 3.22 or higher.
- Android targets are not currently supported.
- WebView2 on Windows via JUCE_USE_WIN_WEBVIEW2 flag in juce_gui_extra is not currently supported.

@@ -144,11 +144,10 @@ you can configure a Clang-cl build by passing "-T ClangCL" on your configuration
If you wish to use Clang with GNU-like command-line instead, you can pass
`-DCMAKE_CXX_COMPILER=clang++` and `-DCMAKE_C_COMPILER=clang` on your configuration commandline.
clang++ and clang must be on your `PATH` for this to work. Only more recent versions of CMake
support Clang's GNU-like command-line on Windows. CMake 3.12 is not supported, CMake 3.15 has
support, CMake 3.20 or higher is recommended. Note that CMake doesn't seem to automatically link a
runtime library when building in this configuration, but this can be remedied by setting the
`MSVC_RUNTIME_LIBRARY` property. See the [official
documentation](https://cmake.org/cmake/help/v3.15/prop_tgt/MSVC_RUNTIME_LIBRARY.html) of this
support Clang's GNU-like command-line on Windows. Note that CMake doesn't seem to automatically
link a runtime library when building in this configuration, but this can be remedied by setting
the `MSVC_RUNTIME_LIBRARY` property. See the [official
documentation](https://cmake.org/cmake/help/v3.22/prop_tgt/MSVC_RUNTIME_LIBRARY.html) of this
property for usage recommendations.

### A note about compile definitions


+ 1
- 1
examples/CMake/AudioPlugin/CMakeLists.txt View File

@@ -8,7 +8,7 @@
# CMake's behaviour is compatible with the named version. This is a standard CMake command, so more
# information can be found in the CMake docs.

cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.22)

# The top-level CMakeLists.txt file for a project must contain a literal, direct call to the
# `project()` command. `project()` sets up some helpful variables that describe source/binary


+ 1
- 1
examples/CMake/ConsoleApp/CMakeLists.txt View File

@@ -10,7 +10,7 @@
# CMake's behaviour is compatible with the named version. This is a standard CMake command, so more
# information can be found in the CMake docs.

cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.22)

# The top-level CMakeLists.txt file for a project must contain a literal, direct call to the
# `project()` command. `project()` sets up some helpful variables that describe source/binary


+ 1
- 1
examples/CMake/GuiApp/CMakeLists.txt View File

@@ -9,7 +9,7 @@
# CMake's behaviour is compatible with the named version. This is a standard CMake command, so more
# information can be found in the CMake docs.

cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.22)

# The top-level CMakeLists.txt file for a project must contain a literal, direct call to the
# `project()` command. `project()` sets up some helpful variables that describe source/binary


Loading…
Cancel
Save