Skip to content

Force a min version of gcc/clang to support std::filesystem#265

Open
mattalvarado wants to merge 2 commits intomasterfrom
malvarado/ensure_std_filesystem
Open

Force a min version of gcc/clang to support std::filesystem#265
mattalvarado wants to merge 2 commits intomasterfrom
malvarado/ensure_std_filesystem

Conversation

@mattalvarado
Copy link
Collaborator

Ensure our compiler natively supports std::filesystem

Copy link
Collaborator

@QuentinTorg QuentinTorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be cleaner to directly check for the feature instead of checking all the compiler versions. I think you could just check if the header is there with this https://cmake.org/cmake/help/latest/module/CheckIncludeFileCXX.html#module:CheckIncludeFileCXX

@QuentinTorg
Copy link
Collaborator

Potentially better still, find_package(Filesystem)

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.

3 participants