-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from sameeul/win2022
Win2022
- Loading branch information
Showing
5 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/setup.py b/setup.py | ||
index 4cb904b..2a9d48a 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -56,12 +56,12 @@ class CMakeBuild(build_ext): | ||
|
||
if platform.system() == "Windows": | ||
print("-----------------Windows...") | ||
- cmake_args += [ | ||
- "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format(cfg.upper(), extdir) | ||
- ] | ||
- if sys.maxsize > 2 ** 32: | ||
- cmake_args += ["-A", "x64"] | ||
- build_args += ["--", "/m"] | ||
+ # cmake_args += [ | ||
+ # "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format(cfg.upper(), extdir) | ||
+ # ] | ||
+ # if sys.maxsize > 2 ** 32: | ||
+ # cmake_args += ["-A", "x64"] | ||
+ # build_args += ["--", "/m"] | ||
else: | ||
cmake_args += ["-DCMAKE_BUILD_TYPE=" + cfg] | ||
build_args += ["--", "-j2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
set CMAKE_GENERATOR=Visual Studio 16 2019 | ||
set CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX " | ||
python -m pip install . | ||
set CMAKE_GENERATOR_PLATFORM= | ||
set CMAKE_GENERATOR_TOOLSET= | ||
set CMAKE_GENERATOR=Ninja | ||
set CMAKE_ARGS=-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX | ||
python -m pip install . -vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters