Skip to content

fixing cmake warnings about deprecated function#4

Merged
jaja360 merged 1 commit intomasterfrom
fix_cmake_warnings
Jan 11, 2025
Merged

fixing cmake warnings about deprecated function#4
jaja360 merged 1 commit intomasterfrom
fix_cmake_warnings

Conversation

@jaja360
Copy link
Collaborator

@jaja360 jaja360 commented Jan 11, 2025

When doing the command cmake -B build ., I got four different warnings saying:

  Calling FetchContent_Populate(cxxopts) is deprecated, call
  FetchContent_MakeAvailable(cxxopts) instead.  Policy CMP0169 can be set to
  OLD to allow FetchContent_Populate(cxxopts) to be called directly for now,
  but the ability to call it with declared details will be removed completely
  in a future version.

This PR fixes three of these by updating the CPM dependency, and fixes the fourth warning by modifying dependencies/CMakeLists.txt:27 manually.

Copy link
Member

@lemire lemire left a comment

Choose a reason for hiding this comment

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

Let us merge.

@jaja360 jaja360 merged commit 344ec24 into master Jan 11, 2025
6 checks passed
@jaja360 jaja360 deleted the fix_cmake_warnings branch January 11, 2025 21:58
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.

2 participants

Comments