Skip to content

support vc runtime static linkage#472

Merged
wenbingl merged 5 commits intomainfrom
vcstat
Jun 20, 2023
Merged

support vc runtime static linkage#472
wenbingl merged 5 commits intomainfrom
vcstat

Conversation

@wenbingl
Copy link
Contributor

No description provided.

@wenbingl wenbingl marked this pull request as ready for review June 14, 2023 18:19
@wenbingl wenbingl requested a review from a team as a code owner June 14, 2023 18:19
@wenbingl wenbingl requested a review from snnn June 14, 2023 18:19

steps:
- script: |
call .\build.bat -DOCOS_ENABLE_CTEST=ON -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the argument string seems not to be easily used, any better idea?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one could use a cmake option ... ;D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that could be a solution, but I noticed what protobuf did the same thing actually brought us some trouble to add some extra code to switch the flag back and forth, especially when ort-extensions was used as cmake sub-directory for another project.

DCMAKE_MSVC_RUNTIME_LIBRARY is documented feature from cmake and it's kind of a standard that we should follow.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could perhaps add a magic string to replace "MultiThreaded$<$CONFIG:Debug:Debug>" so it is simple for the user when passing the parameter for DCMAKE_MSVC_RUNTIME_LIBRARY to build.bat - and then we can parse it in the YAML file.

@wenbingl
Copy link
Contributor Author

Merge this fixing firstly, and any further improvement are welcomed.

@wenbingl wenbingl merged commit a6012b3 into main Jun 20, 2023
@wenbingl wenbingl deleted the vcstat branch June 20, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants