From c9eca48cda176e220ddd2b6d60b95f561c954053 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Mon, 9 Sep 2024 15:01:08 -0700 Subject: [PATCH] Append CMake flags for Linux only --- .builder/actions/build_samples.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.builder/actions/build_samples.py b/.builder/actions/build_samples.py index 26a7125be..e85d31949 100644 --- a/.builder/actions/build_samples.py +++ b/.builder/actions/build_samples.py @@ -71,7 +71,8 @@ def run(self, env): '-DCMAKE_BUILD_TYPE=RelWithDebInfo']) # append extra cmake configs steps[-1].extend(cmd_args.cmake_extra) - steps[-1].extend(env.config['cmake_args']) + if sys.platform == "linux" or sys.platform == "linux2": + steps[-1].extend(env.config['cmake_args']) steps.append(['cmake', '--build', build_path, '--config', 'RelWithDebInfo']) @@ -85,7 +86,8 @@ def run(self, env): '-DCMAKE_BUILD_TYPE=RelWithDebInfo']) # append extra cmake configs steps[-1].extend(cmd_args.cmake_extra) - steps[-1].extend(env.config['cmake_args']) + if sys.platform == "linux" or sys.platform == "linux2": + steps[-1].extend(env.config['cmake_args']) steps.append(['cmake', '--build', build_path, '--config', 'RelWithDebInfo']) @@ -99,7 +101,8 @@ def run(self, env): '-DCMAKE_BUILD_TYPE=RelWithDebInfo']) # append extra cmake configs steps[-1].extend(cmd_args.cmake_extra) - steps[-1].extend(env.config['cmake_args']) + if sys.platform == "linux" or sys.platform == "linux2": + steps[-1].extend(env.config['cmake_args']) steps.append(['cmake', '--build', build_path, '--config', 'RelWithDebInfo']) @@ -111,7 +114,8 @@ def run(self, env): f'-H{sample_path}', f'-DCMAKE_PREFIX_PATH={env.install_dir}', '-DCMAKE_BUILD_TYPE=RelWithDebInfo']) - steps[-1].extend(env.config['cmake_args']) + if sys.platform == "linux" or sys.platform == "linux2": + steps[-1].extend(env.config['cmake_args']) steps.append(['cmake', '--build', build_path, '--config', 'RelWithDebInfo'])