Setup cmake configuration as RelWithDebInfo when building in debug mode

This commit is contained in:
rthomas 2020-09-26 11:17:03 +02:00
parent 61e93d71f2
commit 013a3861c0

View File

@ -106,7 +106,7 @@ class BuildLibrary(build_ext):
build_temp = self.build_temp build_temp = self.build_temp
extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name))) extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
cmake_library_output_directory = os.path.abspath(os.path.dirname(build_temp)) cmake_library_output_directory = os.path.abspath(os.path.dirname(build_temp))
cfg = 'Debug' if self.debug else 'Release' cfg = 'RelWithDebInfo' if self.debug else 'Release'
is64 = sys.maxsize > 2**32 is64 = sys.maxsize > 2**32
cmake_args = [ cmake_args = [