Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional CMake versioning in Nix shell for CLion compatibility #1966

Open
RobBuchananCompPhys opened this issue Aug 14, 2024 · 0 comments
Open
Assignees
Labels
Type: Enhancement Enhancement for existing feature

Comments

@RobBuchananCompPhys
Copy link
Contributor

Describe the feature / issue
CLion IDE on Windows allows us to use a Docker image as a toolchain for building and compiling C++ source code.
However, CMake versions supported by this toolchain interface are apprently limited to 3.16-3.24, while our current nix development shell pulls CMake 3.27.
It is quite possible (based on CLion user forums) that this is the reason that we cannot successfully build Dissolve in CLion in this way.

To test this further, we need to be able to pull a CMake version within the supported bounds, which could be done via a new Nix dev shell (i.e. nix-clion-shell or something to that effect). Since the nix develop command is run in the Docker file, we need to be able to pass something like an arg or env var to the Docker build, specifying that we want the older Cmake.

Additional details
The CLion toolchain interface discovers the Nix docker image CMake, but presents a warning about compatibility. CLion then fails to find various packages at compile time, despite their paths being recorded in the CMake cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Enhancement for existing feature
Projects
None yet
Development

No branches or pull requests

2 participants