Skip to content

Commit

Permalink
Fix quotes for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
r-zenine committed Feb 11, 2020
1 parent 5019f7b commit 46d25d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _build_cmake_dependency(directory, args=""):
os.chdir(directory)
if sys.platform == 'win32':
os.system("cmake.exe --clean .")
os.system("cmake.exe -G='Visual Studio 16 2019' {} .".format(args) )
os.system('cmake.exe -G="Visual Studio 16 2019" {} .'.format(args) )
os.system("cmake.exe --build .")
else:
os.system("cmake --clean .")
Expand All @@ -95,7 +95,12 @@ def _build_cmake_dependency(directory, args=""):

def build_dependencies():
zlib_path = os.path.join(third_party_dir, "zlib")
libpng_cmake_options="-DPNG_BUILD_ZLIB=ON -DZLIB_INCLUDE_DIR:PATH={zlib_path} -DZLIB_LIBRARY:FILEPATH={zlib_path}/libz.so".format(zlib_path=zlib_path)
if sys.platform == "win32":
libpng_cmake_options="-DPNG_BUILD_ZLIB=ON -DZLIB_INCLUDE_DIR:PATH={zlib_path} -DZLIB_LIBRARY:FILEPATH={zlib_path}/libz.lib".format(zlib_path=zlib_path)
elif sys.platform == "darwin":
libpng_cmake_options="-DPNG_BUILD_ZLIB=ON -DZLIB_INCLUDE_DIR:PATH={zlib_path} -DZLIB_LIBRARY:FILEPATH={zlib_path}/libz.dylib".format(zlib_path=zlib_path)
else :
libpng_cmake_options="-DPNG_BUILD_ZLIB=ON -DZLIB_INCLUDE_DIR:PATH={zlib_path} -DZLIB_LIBRARY:FILEPATH={zlib_path}/libz.so".format(zlib_path=zlib_path)
_build_cmake_dependency("./third_party/zlib")
# Deactivate SIMD on macOS
jpeg_turbo_options = ""
Expand Down

0 comments on commit 46d25d9

Please sign in to comment.