Skip to content

Add a basic version of cmake presets#797

Merged
thilinarmtb merged 22 commits into
developmentfrom
add_cmake_presets
Oct 1, 2025
Merged

Add a basic version of cmake presets#797
thilinarmtb merged 22 commits into
developmentfrom
add_cmake_presets

Conversation

@thilinarmtb
Copy link
Copy Markdown
Collaborator

@thilinarmtb thilinarmtb commented Sep 12, 2025

Description

Add CMake presets for configure, build, install and test phases.

The following configure, build and workflow presets are added by this PR:

tratnayaka@hapana3 occa % cmake --list-presets
Available configure presets:
  "system-default" - Configure with system default compilers
  "gnu-default"    - Configure with GNU compilers
  "clang-default"  - Configure with LLVM/Clang compilers
  "oneapi-default" - Configure with oneAPI compilers

tratnayaka@hapana3 occa % cmake --build --list-presets
Available build presets:
  "system-default" - Build with system default compilers
  "gnu-default"    - Build with GNU compilers
  "clang-default"  - Build with LLVM/Clang compilers
  "oneapi-default" - Build with oneAPI compilers

tratnayaka@hapana3 occa % cmake --workflow --list-presets
Available workflow presets:
  "system-default" - Configure, build and install with system default compilers
  "gnu-default"    - Configure, build and install with GNU compilers
  "clang-default"  - Configure, build and install with LLVM/Clang compilers
  "oneapi-default" - Configure, build and install with oneAPI compilers

For example, the GNU workflow can now be executed with a single command line as follows:

cmake --workflow --preset gnu-default

TODO

  • Add test presets and update respective workflow presets.

@thilinarmtb thilinarmtb marked this pull request as draft September 12, 2025 12:39
@thilinarmtb thilinarmtb force-pushed the add_cmake_presets branch 3 times, most recently from d7cb47c to 360fd06 Compare September 17, 2025 18:06
@thilinarmtb thilinarmtb marked this pull request as ready for review September 17, 2025 18:51
@thilinarmtb thilinarmtb force-pushed the add_cmake_presets branch 3 times, most recently from e56639c to 00a260b Compare September 24, 2025 21:34
@thilinarmtb thilinarmtb force-pushed the add_cmake_presets branch 3 times, most recently from e9717f7 to 939045b Compare September 25, 2025 15:54
@thilinarmtb thilinarmtb force-pushed the add_cmake_presets branch 3 times, most recently from a567721 to f9197be Compare September 25, 2025 19:15
@thilinarmtb thilinarmtb merged commit 7077278 into development Oct 1, 2025
4 checks passed
@thilinarmtb thilinarmtb deleted the add_cmake_presets branch October 14, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant