|
|
|
@ -40,12 +40,9 @@ class CMakeBuild(build_ext):
|
|
|
|
|
cmake_generator = os.environ.get("CMAKE_GENERATOR", "")
|
|
|
|
|
|
|
|
|
|
# Set Python_EXECUTABLE instead if you use PYBIND11_FINDPYTHON
|
|
|
|
|
# EXAMPLE_VERSION_INFO shows you how to pass a value into the C++ code
|
|
|
|
|
# from Python.
|
|
|
|
|
cmake_args = [
|
|
|
|
|
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={}".format(extdir),
|
|
|
|
|
"-DPYTHON_EXECUTABLE={}".format(sys.executable),
|
|
|
|
|
"-DEXAMPLE_VERSION_INFO={}".format(self.distribution.get_version()),
|
|
|
|
|
"-DPython_EXECUTABLE={}".format(sys.executable),
|
|
|
|
|
"-DCMAKE_BUILD_TYPE={}".format(cfg), # not used on MSVC, but no harm
|
|
|
|
|
]
|
|
|
|
|
build_args = []
|
|
|
|
|