Skip to content
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

Fix build issues on Windows with Clang #35

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

dmatveev
Copy link
Collaborator

@dmatveev dmatveev commented Sep 6, 2023

  • By default we passed MSVC flags on Windows unconditionally, extended this behavior to the Clang case;
  • Did some tricks to make things work in this configuration;
  • Raised the minimum required CMake version based on recent warnings.

Building w/LLVM:

Have LLVM, CMake, and Ninja in your PATH. Then:

cmake ..\ade -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -G Ninja
cmake --build . --target GTest
cmake --build .

Should fix #24

- By default we passed MSVC flags on Windows unconditionally,
  extended this behavior to the Clang case;
- Did some tricks to make things work in this configuration;
- Raised the minimum required CMake version based on recent
  warnings.
@dmatveev dmatveev self-assigned this Sep 6, 2023
@dmatveev
Copy link
Collaborator Author

dmatveev commented Sep 6, 2023

Unfortunately ADE's GH Actions don't have Windows.. Opened #37, but meanwhile tested this branch locally with MSVS 2019. Sort-of works

@dmatveev
Copy link
Collaborator Author

dmatveev commented Sep 7, 2023

@TolyaTalamanov @alexgiving can you please have a look on this too? A write access reviewer approval is required (technically)

@dmatveev dmatveev changed the title Added build issue fixes for Clang on Windows Fix build issues on Windows with Clang Sep 7, 2023
Copy link

@TolyaTalamanov TolyaTalamanov left a comment

Choose a reason for hiding this comment

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

👍

@dmatveev dmatveev merged commit 5143d0f into opencv:master Sep 7, 2023
20 checks passed
@dmatveev
Copy link
Collaborator Author

dmatveev commented Sep 7, 2023

Thanks!

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.

can't build with clang on windows
3 participants