Skip to content

compile on older MacOS #8

Description

@xiaoyue10131748

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)
    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions