Skip to content

Task: Fix deprecation warnings in CMake files #131

@jcarrete5

Description

@jcarrete5

Subject

When building the reference implementation, there are a few CMake warnings that are emitted and should be resolved:

CMake Warning (dev) at /usr/local/share/cmake/Modules/FetchContent.cmake:1953 (message):
   Calling FetchContent_Populate(googletest) is deprecated, call
   FetchContent_MakeAvailable(googletest) instead.  Policy CMP0169 can be set
   to OLD to allow FetchContent_Populate(googletest) to be called directly for
   now, but the ability to call it with declared details will be removed
   completely in a future version.
 Call Stack (most recent call first):
   CMakeLists.txt:36 (FetchContent_Populate)
 This warning is for project developers.  Use -Wno-dev to suppress it.
 CMake Deprecation Warning at build/_deps/googletest-src/CMakeLists.txt:4 (cmake_minimum_required):
   Compatibility with CMake < 3.10 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
   to tell CMake that the project requires at least <min> but has been updated
   to work with policies introduced by <max> or earlier.

 CMake Deprecation Warning at build/_deps/googletest-src/googlemock/CMakeLists.txt:39 (cmake_minimum_required):
   Compatibility with CMake < 3.10 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
   to tell CMake that the project requires at least <min> but has been updated
   to work with policies introduced by <max> or earlier.

 CMake Deprecation Warning at build/_deps/googletest-src/googletest/CMakeLists.txt:49 (cmake_minimum_required):
   Compatibility with CMake < 3.10 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
   to tell CMake that the project requires at least <min> but has been updated
   to work with policies introduced by <max> or earlier.

Notes (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions