-
Notifications
You must be signed in to change notification settings - Fork 23
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
MSVC compatibility #19
Conversation
Is it possible to include getopt and not to rely on vcpkg. That way you have more control and will not encounter support issues in the future. |
I don't mind replacing getopt with another library. If I have to add a dependency, I might as well use a better parser. I looked at boost's program_options, but I don't like it. CLI11 is much better, but I'm missing a way to mimic getopt's optional arguments (mainly used for |
The latest commits seems to be good, tested with VS2019 and CMake 3.20.2. Only problem: if I enable shared dll build, the tools build will fail, something like the following.
|
I know shared library is not working.
You could try |
fix minimum version use find_package for tinyxml2 update some dependency syntax
old method did not work with MSVC
I'm abandoning the support for MSVC shared library with this PR. MSVC users will have to be content with static linking for now. At least you don't have the copy the dll to compensate the lack of rpath. |
fix #5
still missing import/export symbol for shared library and getopt configuration
I can build using vcpkg's getopt but it does not have a cmake find_package script. I am using the following changes:
I obviously cannot keep an imported target like that. For some reason including getopt before the standard library headers breaks them.