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 5195e66 commit c1b520a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .vcpkg/cmake/env.cmake

This file was deleted.

5 changes: 4 additions & 1 deletion .vcpkg/linux.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include(.vcpkg/cmake/env.cmake)
set(VCPKG_TARGET_TRIPLET x64-linux)

option(BUILD_CLI "Build CLI" OFF)
Expand All @@ -11,4 +10,8 @@ if(BUILD_TESTING)
list(APPEND VCPKG_MANIFEST_FEATURES "tests")
endif()

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)
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
5 changes: 4 additions & 1 deletion .vcpkg/windows.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include(.vcpkg/cmake/env.cmake)
set(VCPKG_TARGET_TRIPLET x64-windows-static)

option(BUILD_CLI "Build CLI" OFF)
Expand All @@ -11,4 +10,8 @@ if(BUILD_TESTING)
list(APPEND VCPKG_MANIFEST_FEATURES "tests")
endif()

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)
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)

0 comments on commit c1b520a

Please sign in to comment.