funchook icon indicating copy to clipboard operation
funchook copied to clipboard

Calling `FetchContent_Populate(distorm)` is deprecated, call `FetchContent_MakeAvailable(distorm)` instead.

Open StackOverflowExcept1on opened this issue 9 months ago • 1 comments

I'm trying to use this library in an environment where warnings are treated as errors and getting compilation problem.

$ cmake --version
cmake version 3.31.6

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=. ..
-- The C compiler identification is GNU 11.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test GNU_SPECIFIC_STRERROR_R
-- Performing Test GNU_SPECIFIC_STRERROR_R - Success
-- Performing Test HAVE_FVISIBILITY_HIDDEN
-- Performing Test HAVE_FVISIBILITY_HIDDEN - Success
CMake Warning (dev) at /usr/share/cmake-3.31/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(distorm) is deprecated, call
  FetchContent_MakeAvailable(distorm) instead.  Policy CMP0169 can be set to
  OLD to allow FetchContent_Populate(distorm) 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:125 (FetchContent_Populate)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at test/CMakeLists.txt:1 (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.


-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (3.5s)
-- Generating done (0.0s)
-- Build files have been written to: /mnt/tmpfs/funchook/build

StackOverflowExcept1on avatar Mar 24 '25 23:03 StackOverflowExcept1on

skill issue

BigManBear avatar Mar 24 '25 23:03 BigManBear

Thank you for reporting this issue. Unfortunately, due to a shift in my personal interests, this project is now archived. Consequently, I have closed all open issues and pull requests.

If you're looking for a successor project, please check the network graph to see if any forks have continued development.

kubo avatar Sep 28 '25 02:09 kubo