Skip to content

Commit af416b9

Browse files
authored
Add PowerShell instructions for CPM.cmake setup (#706)
Added PowerShell instructions for creating a directory and downloading CPM.cmake.
1 parent b08756c commit af416b9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ mkdir -p cmake
5555
wget -O cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm.cmake
5656
```
5757

58+
Or using PowerShell:
59+
60+
```powershell
61+
New-Item -ItemType Directory -Force -Path "cmake"
62+
Invoke-WebRequest -Uri "https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm.cmake" -OutFile "cmake/CPM.cmake"
63+
```
64+
5865
You can also download CPM.cmake directly from your project's `CMakeLists.txt`. See the [wiki](https://github.com/cpm-cmake/CPM.cmake/wiki/Downloading-CPM.cmake-in-CMake) for more details.
5966

6067
## Usage

0 commit comments

Comments
 (0)