Skip to content

Commit

Permalink
[pybind11] ensure translation of win32 path in cmake toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
planetmarshall committed Oct 14, 2022
1 parent 13b4cd9 commit 430971e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/pybind11/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from conans.tools import environment_append

import os
from pathlib import PurePath
import sys


Expand All @@ -21,7 +22,7 @@ def generate(self):
deps.generate()

toolchain = CMakeToolchain(self)
toolchain.variables["PYTHON_EXECUTABLE"] = self._python_interpreter
toolchain.variables["PYTHON_EXECUTABLE"] = PurePath(self._python_interpreter).as_posix()
toolchain.generate()

run = VirtualRunEnv(self)
Expand Down

0 comments on commit 430971e

Please sign in to comment.