Skip to content

Commit

Permalink
Vcpkg: Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Iswenzz committed Sep 24, 2023
1 parent 702ed4b commit a5f2235
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .vcpkg/cmake/env.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(NOT DEFINED ENV{VCPKG_ROOT})
message(FATAL_ERROR "ERROR: VCPKG_ROOT environment variable is not defined. Please set it to the root directory of your vcpkg installation.")
endif()

file(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT)
2 changes: 1 addition & 1 deletion .vcpkg/linux.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT)
include(.vcpkg/cmake/env.cmake)
set(VCPKG_TARGET_TRIPLET x64-linux)
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
2 changes: 1 addition & 1 deletion .vcpkg/osx.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT)
include(.vcpkg/cmake/env.cmake)
set(VCPKG_TARGET_TRIPLET x64-osx)
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
2 changes: 1 addition & 1 deletion .vcpkg/windows.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT)
include(.vcpkg/cmake/env.cmake)
set(VCPKG_TARGET_TRIPLET x64-windows-static)
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)

0 comments on commit a5f2235

Please sign in to comment.