Comments (4)
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.
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.
Thank you, it's important when not using cmake
from bit7z.
Released on v4.0.6.
Thank you, it's important when not using cmake
You're welcome!
from bit7z.
Related Issues (20)
- [Bug]: Incorrect display and decompression of compressed file name HOT 4
- [Feature Request]: RenameOutput HOT 2
- [Feature Request]: custom suffix format HOT 1
- [Bug]: Issues regarding the Fat32 and Exfat file systems HOT 8
- [Bug]: Errors related to file compression HOT 4
- [Feature Request]: Can you provide a method for setting the file time HOT 1
- [build-error]: Failed to open the archive file: No such process HOT 2
- [Bug]: UpdateMode::Update not working as expected, throwing exception HOT 3
- [Feature Request]: Creation or extraction archive file in one line HOT 1
- [Feature Request]: Support for compressed packages in four formats: ace, img, uue, and war HOT 2
- [Feature Request]: Extracting files whose names contain forbidden characters HOT 1
- Do I need to build 7zip myself? HOT 6
- [Bug]:
- [Bug]: Multiple Definition Linker Error for IID_IUnknown HOT 10
- [Bug]: Compile error when bit7z.lib is introduced into the project. HOT 11
- [Feature Request]: Is "tstring_to_path" forgotten here? HOT 1
- [Bug]: HOT 3
- [Feature Request]: Compresses files open for writing by another applications HOT 1
- [Bug]: CreateObject 函数调用异常
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit7z.