rapidsai / rapids-cmake

https://docs.rapids.ai/api/rapids-cmake/stable/
Apache License 2.0
27 stars 45 forks source link

[BUG] Warnings during install: `Policy CMP0159 is not set: file(STRINGS) with REGEX updates` #583

Closed Jacobfaib closed 4 months ago

Jacobfaib commented 4 months ago
$ cmake --install /path/to/build
...
  Call Stack (most recent call first):
    build/_deps/rapids-cmake-src/rapids-cmake/test/detail/generate_installed_CTestTestfile.cmake:225 (determine_install_location_of_all_targets)
    build/tests/cpp/cmake_install.cmake:65 (include)
    build/cmake_install.cmake:372 (include)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Warning (dev) at build/_deps/rapids-cmake-src/rapids-cmake/test/detail/generate_installed_CTestTestfile.cmake:215 (file):
    Policy CMP0159 is not set: file(STRINGS) with REGEX updates
    CMAKE_MATCH_<n>.  Run "cmake --help-policy CMP0159" for policy details.
    Use the cmake_policy command to set the policy and suppress this warning.

Seems CMP0159 is new since 3.29