Giter VIP home page Giter VIP logo

Comments (4)

rikyoz avatar rikyoz commented on June 12, 2024

Hi!
This is weird! The BIT7Z_DISABLE_USE_STD_FILESYSTEM is not used to define a preprocessor flag, it is used to decide which C++ standard version to use to build the library.

If you enable BIT7Z_DISABLE_USE_STD_FILESYSTEM in CMake, the project should be configured to use C++14, and thus the compiler should not give access to the std::filesystem library.
So the #if defined( __cpp_lib_filesystem ) and #if BIT7Z_CPP_STANDARD >= 17 && defined( __has_include ) conditions should be both false, and BIT7Z_USE_STANDARD_FILESYSTEM would never be defined.

I guess I can get CMake to define the BIT7Z_DISABLE_USE_STD_FILESYSTEM preprocessor flag and use the #ifndef BIT7Z_DISABLE_USE_STD_FILESYSTEM as you did.

from bit7z.

rikyoz avatar rikyoz commented on June 12, 2024

Update: I've pushed the fix to the hotfix/v4.0.6 branch.

Now using the BIT7Z_DISABLE_USE_STD_FILESYSTEM CMake option will define the namesake preprocessor flag, and will prevent bidefines.hpp from defining the BIT7Z_USE_STANDARD_FILESYSTEM.

The next patch version v4.0.6 will contain the fix.

from bit7z.

kleuter avatar kleuter commented on June 12, 2024

Thank you, it's important when not using cmake

from bit7z.

rikyoz avatar rikyoz commented on June 12, 2024

Released on v4.0.6.

Thank you, it's important when not using cmake

You're welcome!

from bit7z.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.