Skip to content

Commit

Permalink
Append CMake flags for Linux only
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Sep 9, 2024
1 parent 66427a3 commit c9eca48
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .builder/actions/build_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand All @@ -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'])
Expand All @@ -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'])
Expand All @@ -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'])
Expand Down

0 comments on commit c9eca48

Please sign in to comment.