Skip to content

Conversation

@koushikcs562
Copy link

Wrap find_package(benchmark) in if(BUILD_BENCH) to remove CMake warning

Wrap #include <gtest/gtest_prod.h> in #ifdef BUILD_TESTING to prevent compilation errors

All fixes tested locally

@JoergAtGithub
Copy link
Member

Welcome at Mixxx!
As a first-time contributor we need you to sign the Mixxx Contributor Agreement and comment here when you have done so. It gives us permission to distribute your contribution under the GPL v2 or later license and the Apple Mac App Store. It is also helpful for us to have contact information for contributors in case we may need it in the future.

Copy link
Member

@JoergAtGithub JoergAtGithub left a comment

Choose a reason for hiding this comment

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

It looks like yo accidentally commited two additional files

@koushikcs562
Copy link
Author

It looks like yo accidentally commited two additional files

Yes I will remove them

@koushikcs562 koushikcs562 force-pushed the fix-build-without-gtest branch from 099917e to 70c5e61 Compare December 11, 2025 09:57
@daschuer
Copy link
Member

I am afraid this is not yet working.
You need to define

add_compile_definitions(BUILD_TESTING)

to have that available in the C++ code.
Can you please add another Draft PR for testing only, that covers the No-Google-Test case?

This can be done by removing

and adding
-DBUILD_TESTING=OFF
here:
https://github.com/daschuer/mixxx/blob/8720b7595fbbecd62d20c89bf66ff500adce5408/.github/workflows/build.yml#L59

@koushikcs562
Copy link
Author

@daschuer sure i will

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants