Skip to content

Adding a CMake presets file#701

Open
jayeshkrishna wants to merge 2 commits into
masterfrom
jayeskrishna/add_cmake_presets
Open

Adding a CMake presets file#701
jayeshkrishna wants to merge 2 commits into
masterfrom
jayeskrishna/add_cmake_presets

Conversation

@jayeshkrishna

Copy link
Copy Markdown
Contributor

Adding a simple CMake presets file with instructions for
configuring and building SCORPIO on a generic linux
machine/laptop

@jayeshkrishna jayeshkrishna requested a review from amametjanov July 7, 2026 20:35
@jayeshkrishna jayeshkrishna self-assigned this Jul 7, 2026
@jayeshkrishna

Copy link
Copy Markdown
Contributor Author

This CMake presets file is useful when building SCORPIO with IDE tools like VSCode.

Setup Settings in VSCode,

  • Ensure that CMake extensions are installed, CMake preset files are enabled (CMake:Use CMake Presets to "always" in Settings) and CMake generator is set to "Unix Makefiles" ("CMake:Generator" in Settings)
  • Install CMake, MPICH and PnetCDF using Conda
  • From your conda environment launch VSCode (code .)
  • VSCode automatically reads the new CMake presets file

To configure SCORPIO from VSCode,

  • Ctrl-Shift-P : Select "CMake: Select Configure Preset", choose "Linux Generic Machine (Debug)"

To build SCORPIO from VSCode,

  • Ctrl-Shift-P : Select "CMake: Select Build Preset", choose "linux-generic-debug-build"

@jayeshkrishna jayeshkrishna changed the title Adding a simple CMake presets file Adding a CMake presets file Jul 8, 2026
Adding a simple CMake presets file with instructions for
configuring and building SCORPIO on a generic linux machine
@jayeshkrishna jayeshkrishna force-pushed the jayeskrishna/add_cmake_presets branch from e154cb8 to bc52584 Compare July 8, 2026 15:47
Git ignore the build directory used by CMake Presets config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant