-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[cppcommon] Fix mingw gcc build #4001
[cppcommon] Fix mingw gcc build #4001
Conversation
The patch 0003 is to prevent errors related to the version of the windows sdk made available by mingw gcc: error: 'SYMBOLIC_LINK_FLAG_DIRECTORY' was not declared in this scope The patch 0004 is to prevent 'too many sessions' mingw errors.
The patch 0003 (which set
The patch 0004 (which pass the option It is worth noting that both this options are also set upstream by the project. The project, however, set this kind of things through cmake modules imported as git submodules from other repositories. So I decided to add them as patches to the main |
Some configurations of 'cppcommon/cci.20201104' failed in build 1 (
|
All green in build 2 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is worth noting that both this options are also set upstream by the project. The project, however, set this kind of things through cmake modules imported as git submodules from other repositories. So I decided to add them as patches to the main CMakeLists.txt instead.
Please add hyperlinks to the patches so there's a trace
Perhaps there's a better way
All green in build 3 (
|
All green in build 4 (
|
The project specifies dependencies with the
And imports those settings in # CMake module path
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Compiler features
include(SetCompilerFeatures)
include(SetCompilerWarnings)
include(SetPlatformFeatures)
include(SystemInformation) The settings in question are provided in if(CYGWIN)
# Base Windows platform
add_definitions(-DWIN32)
# Windows 10
add_definitions(-D_WIN32_WINNT=0x0A00) Although it sets |
All green in build 5 (
|
Why are the build scripts not being pulled into CCI? I see the author is the one who invented a tool for these |
Well, that's something that didn't occur to me XD The author actually focuses his GIL usage on managing dependencies - I think that's why I completelly disregarded adding it, since, err, we're using Conan... But for the sake of just getting warning settings and SDK definitions, why not?? Maybe I can try to add this GIL as a build requirement? Do you think there's a better way to approach this, @prince-chrismc? |
BTW, GIL is the name of the tool that manage those |
I agree, this approach is a bit move kill.
I think, #3903 is a source of inspiration. I think the patches are good but they just need more commenting so that other mainters will be able to understand them and be able to re-apply them if needs be. This author makes his work only usable to himself and it's a slippery slope to follow |
I see this patch as a platform/build system patch, not an hotfix based on a bug because a feature. So I'm fine accepting this patch. Of course, it would be great adding it to the upstream. |
Specify library name and version: cppcommon/cci.20201104
conan-center hook activated.