-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[cppunit] add linux support and bump version to 1.15.1 #15018
[cppunit] add linux support and bump version to 1.15.1 #15018
Conversation
48e1033
to
5d4a8f8
Compare
I'm 99% sure this is correct but I'm still not totally up to speed myself on this exception to |
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.
Could you please help confirm if this port supports arm
, uwp
and osx
?
If it can support all triplets now, please remove these codes in ci.baseline.txt.
cppunit:arm64-windows=fail
cppunit:arm-uwp=fail
cppunit:x64-linux=fail
cppunit:x64-osx=fail
cppunit:x64-uwp=fail
b30739b
to
413a2e5
Compare
The failures on linux and osx like this:
The failures on uwp like this:
For uwp, I think this port currently doesn't support uwp, we can add For linux and osx, you should try to look into and fix the problems. |
yep, I will look into it. I was too confident :) |
3cb2111
to
397a3ec
Compare
Unfortunately, the unified provided CMakeLists.txt is not doable without patching the upstream source (the thing I've forgotten to commit). I've changed my mind and use now the upstream configure script. This is less dangerous, but leads to maintain two build system. If you prefer, I can switch back to msbuild for Windows, as there is no added value now to use CMakefile.txt ? |
397a3ec
to
e6d7a24
Compare
We have strong opinions about how ports should interact with the rest of the system, such as how they use features, and what ports to do upstream contents (e.g. we aren't everything's bug clearinghouse when upstream hasn't accepted those changes) but beyond that what the contributor says goes :) |
ok, fine then :) Frankly speaking, I dislike like hell patches. They are screwed to a specific version and are hard to maintain. So, If everybody agree, I would stick to that proposal, but I'm always open for discussion (and for improvement ;) |
After some discussion we don't believe this vcpkg_cmake_wrapper is correct here: that's for overriding built-in cmake find scripts only, and we should be emitting a config instead. |
e6d7a24
to
6d605aa
Compare
I've made the required changes. It should be good now. |
b4fe144
to
abf6986
Compare
After internal discussion, we think we can accept the new cmake build method. |
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.
Can you change the non-windows build method to cmake?
Not easily. It requires patching cppunit, I prefer not too. |
Fine, that's acceptable. |
The regression will be fixed in #15251. |
|
||
file(GLOB CPPUNIT_SRC RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/cppunit/*.cpp") | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) |
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.
Should this target_include_directories
so that folks who link with cppunit have the right headers automatically available instead of needing to author your own Config
?
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.
Yes you are right. I will change that ASAP, but as on linux, the build use the old configure script, we still have to deliver our own Config
${CMAKE_CURRENT_SOURCE_DIR}/src/DllPlugInTester/DllPlugInTester.cpp | ||
) | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/DllPlugInTester) |
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.
Ditto target_include_directories.
Please merge with master to get infrastructure updates; you created this PR without permission for us to do that for you |
Ok, I will do that ASAP, Sorry, I'm not at work right now because of christmas holiday. |
11c68c2
to
9b5f029
Compare
@NancyLi1013 Can you mark this approved if you're not still waiting for changes? Thanks! |
LGTM now. If there are no other concerns from you, you can merge this PR @BillyONeal. |
Woooooo :D |
Describe the pull request
Add full linux support and update version to 1.15.1. FindPackage(CppUnit ...) support is also added. We provide a custom CMakelists.txt for windows as it is simpler. Since I'm not a Pro MSVC user, someone should check that it is still usable on this IDE.
All triplets should be supported, with the exception of uwp