Skip to content

Commit 6f2ea17

Browse files
committed
Add vcpkg toolchain files to cmake on windows
1 parent 28c5597 commit 6f2ea17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
cmake_minimum_required(VERSION 3.29)
2+
3+
if (WIN32)
4+
set(CMAKE_TOOLCHAIN_FILE "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
5+
endif()
6+
27
project(pinedio-usb C)
38

49
set(CMAKE_C_STANDARD 11)

0 commit comments

Comments
 (0)