-
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
[OpenFX] New Port #37670
[OpenFX] New Port #37670
Conversation
since the previous pull request for OpenFX library (#36927) didn't have any progress since last month, I submitted a new one by myself. in my opinion the current PR is ready to be merged. however, if any further changes need to be applied, please let me know. |
@microsoft-github-policy-service agree |
@BillyONeal I just extracted the CMake files from the patch to separated files copied using the |
@WangWeiLin-MV I just marked the CMake target as |
Thanks! If you think it's ready to go please push the |
@WangWeiLin-MV I applied all the changes except |
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.
Since it is a new port, could you please change files End of Line
to LF
? Thanks in advance.
So the CMake project must be reviewed... |
OfxSupport composed of C++ wrappers for OpenFx as, OpenFx is C-based. |
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.
Port usage tests pass with following triplets:
- x64-linux
- x64-windows
- x64-windows-static
- x64-windows-static-md
- x86-windows
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.
Community feedback.
ports/openfx/Openfx.cmake
Outdated
$<INSTALL_INTERFACE:include/openfx> | ||
) | ||
|
||
add_subdirectory(Support) |
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.
I would suggest to merge the contests of the other short file, and then rename this file to CMakeLists.txt
.
ports/openfx/Openfx.cmake
Outdated
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
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.
I think that this is mostly obsolete, given the target_compile_feature
below.
set(CMAKE_CXX_STANDARD 11) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
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.
@dg0yt since OpenFX support library can't be built using the C++17, we should stick to C++14, at least for this old version. so I just updated the CMAKE_CXX_STANDARD
to 14
.
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.
I'm happy with this provided the issues raised by @dg0yt are addressed/considered
@dg0yt @BillyONeal I just applied the changes related to the provided feedbacks. |
@JavierMatosD I applied the mentioned changes, now the PR can be reviewed again |
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.