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

compile on older MacOS #8

Open
xiaoyue10131748 opened this issue Aug 27, 2021 · 0 comments
Open

compile on older MacOS #8

xiaoyue10131748 opened this issue Aug 27, 2021 · 0 comments

Comments

@xiaoyue10131748
Copy link

Current clang version for MacOS 10.13.6 is 4.2.1 doesn't support either or <experimental/filesystem>. In order to make filesystem API compatible, I add ghc::filesystem by myself as an additional option by referring to (https://stackoverflow.com/questions/49577343/filesystem-with-c17-doesnt-work-on-my-mac-os-x-high-sierra). Here is the source code if ghc:(https://github.com/gulrak/filesystem).

Here are the changes I made:

  1. change #include <filesystem> to #include <ghc/filesystem.hpp>; namespace fs =std::filesystem -> namespace fs = ghc::filesystem in ScannerWorkDirManager.cpp and PluginRegistry.cpp
  2. add the following things to the CmakeLists.txt
    add_subdirectory(<Your ghc source code path> [Your target binary path])
    target_link_libraries(iblessing ghc_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

No branches or pull requests

1 participant