Skip to content

Issue 131: Update CMakeLists.txt to fix deprecation warnings#132

Open
jcarrete5 wants to merge 7 commits intordkcentral:mainfrom
jcarrete5:fix-deprecation-warnings
Open

Issue 131: Update CMakeLists.txt to fix deprecation warnings#132
jcarrete5 wants to merge 7 commits intordkcentral:mainfrom
jcarrete5:fix-deprecation-warnings

Conversation

@jcarrete5
Copy link
Copy Markdown
Contributor

@jcarrete5 jcarrete5 commented Jan 30, 2025

Closes #131

The newer version of googletest fixes the CMake deprecation warnings when building with more modern versions of CMake without breaking our tests and FetchContent_MakeAvailable is preferable to FetchContent_Populate.

@jcarrete5 jcarrete5 force-pushed the fix-deprecation-warnings branch from 1ae3706 to afb2dd5 Compare May 10, 2025 01:11
The CTest module, in addition to providing a bunch of extra targets
related to testing, also includes functionality for Coverage and
MemCheck. Better to leave this as-is despite it being kinda hacky.
@jcarrete5 jcarrete5 force-pushed the fix-deprecation-warnings branch from afb2dd5 to 0b31078 Compare June 28, 2025 20:40
Copilot AI review requested due to automatic review settings March 11, 2026 07:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the reference implementation’s CMake configuration to eliminate deprecation warnings from modern CMake/FetchContent usage and from the bundled GoogleTest project during test builds.

Changes:

  • Replace deprecated FetchContent_Populate + manual add_subdirectory with FetchContent_MakeAvailable.
  • Bump GoogleTest from v1.13.0 to v1.15.2 to address upstream CMake deprecation warnings.
  • Clean up the BUILD_TESTS conditional to use if(BUILD_TESTS).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

Task: Fix deprecation warnings in CMake files

4 participants