Skip to content

Commit

Permalink
Fix vars
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth committed Sep 20, 2024
1 parent ee70d9e commit 538feb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,19 @@ def generate(self):

vcpkg_triplet = "x64-windows"
if self.settings.os == "Macos":
generator = "x64-osx"
vcpkg_triplet = "x64-osx"
if self.settings.os == "Linux":
generator = "x64-linux"
vcpkg_triplet = "x64-linux"

print("vcpkg_dir: ", vcpkg_dir)
print("vcpkg_exe: ", vcpkg_exe)
print("vcpkg_tc: ", vcpkg_tc)
print("vcpkg_triplet: ", vcpkg_triplet)

self.run(f"{vcpkg_exe} install --triplet {vcpkg_triplet}")
tc.variables["CMAKE_PROJECT_INCLUDE "] = vcpkg_tc
tc.variables["CMAKE_PROJECT_INCLUDE"] = vcpkg_tc
tc.variables["VCPKG_LIBRARY_LINKAGE"] = "dynamic"
tc.variables["VCPKG_ROOT"] = "vcpkg_dir"

tc.generate()

Expand Down

0 comments on commit 538feb9

Please sign in to comment.