Skip to content

Disable installing gtest when cmake --install#37

Merged
camio merged 3 commits intobemanproject:mainfrom
wusatosi:disable-gtest-install
Oct 1, 2024
Merged

Disable installing gtest when cmake --install#37
camio merged 3 commits intobemanproject:mainfrom
wusatosi:disable-gtest-install

Conversation

@wusatosi
Copy link
Copy Markdown
Member

@wusatosi wusatosi commented Sep 30, 2024

closes #32 .

This pr updates the CMake file, and disables installing gtest headers when running cmake --install.

Note that this will require cmake 3.25 due to use of block.

See: https://github.com/beman-project/exemplar/pull/37/checks#step:6:320 for effect of this pr.

Comment thread CMakeLists.txt Outdated
@wusatosi
Copy link
Copy Markdown
Member Author

The use of block is nice but isn't necessary, I don't think there's any chance we have conflict on the name INSTALL_GTEST

@wusatosi
Copy link
Copy Markdown
Member Author

Explicitly requesting review from @camio.

Copy link
Copy Markdown
Member

@neatudarius neatudarius left a comment

Choose a reason for hiding this comment

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

LGTM from my side

Comment thread CMakeLists.txt Outdated
Copy link
Copy Markdown
Member

@camio camio left a comment

Choose a reason for hiding this comment

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

Looks perfect!

@camio camio merged commit b8d4b06 into bemanproject:main Oct 1, 2024
@camio camio mentioned this pull request Dec 5, 2024
@camio camio mentioned this pull request Feb 27, 2025
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.

gtest and gmock are inadvertantly installed using older versions of CMake

3 participants