prepare.py: add argument to not print cmake invokation command line

parent 400ffe4f
......@@ -221,7 +221,7 @@ macro(linphone_builder_add_builder_to_target TARGETNAME BUILDER)
if(_build_from_external_source_path)
list(FIND LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH_BUILDERS ${BUILDER} _already_included)
if(_already_included EQUAL -1)
message(" external source path builder ${BUILDER}: ${_source_dir}")
# message(" external source path builder ${BUILDER}: ${_source_dir}")
set(EP_${BUILDER}_SOURCE_DIR "${_source_dir}")
list(APPEND LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH_BUILDERS ${BUILDER})
endif()
......
......@@ -56,7 +56,7 @@ class Target:
output_dir = output_dir.replace('\\', '/')
return output_dir
def cmake_command(self, build_type, latest, list_cmake_variables, additional_args):
def cmake_command(self, build_type, latest, list_cmake_variables, additional_args, verbose=True):
current_path = os.path.dirname(os.path.realpath(__file__))
cmd = ['cmake', current_path]
if self.generator is not None:
......@@ -84,7 +84,8 @@ class Target:
cmd_str += ' \"' + w + '\"'
else:
cmd_str += ' ' + w
print(cmd_str)
if verbose:
print(cmd_str)
return cmd
def clean(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment