Skip to content

Commit

Permalink
Set minimum CMake version to 3.15 for static linking MSVC runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
stcmz committed May 21, 2021
1 parent ee28e41 commit 2824da3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.1)
# Requires cmake v3.15 for MSVC_RUNTIME_LIBRARY
cmake_minimum_required(VERSION 3.15)
project(pdbrn LANGUAGES CXX)

# Enforce C++ 17
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Compilation from source code

### Build with CMake

This project uses cross-platform build system CMake to build from source. It detects your environment and decides the most appropriate compiler toolset. The minimum version of CMake required is `3.1`. To build, simply run
This project uses cross-platform build system CMake to build from source. It detects your environment and decides the most appropriate compiler toolset. The minimum version of CMake required is `3.15`. To build, simply run
```
cmake -B build
cmake --build build --config Release
Expand Down

0 comments on commit 2824da3

Please sign in to comment.