fix --verbose usage

This commit is contained in:
Andrew Cassidy 2021-04-12 20:09:46 -07:00
parent d4c91e21b8
commit b3f6350353

View File

@ -86,7 +86,7 @@ class CMakeBuild(build_ext):
# If this is a CI build, make sure not to use any advanced CPU features # If this is a CI build, make sure not to use any advanced CPU features
if bool(os.environ.get('CI', False)): if bool(os.environ.get('CI', False)):
cmake_args += ['-DCMAKE_CXX_FLAGS=-mtune=x86_64'] cmake_args += ['-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON', '-DCMAKE_CXX_FLAGS=-mtune=x86_64']
# Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level
# across all generators. # across all generators.
@ -104,7 +104,7 @@ class CMakeBuild(build_ext):
["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp ["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp
) )
subprocess.check_call( subprocess.check_call(
["cmake", "--verbose", "--build", ".", "--target", ext.name] + build_args, cwd=self.build_temp ["cmake", "--build", ".", "--target", ext.name] + build_args, cwd=self.build_temp
) )