]> git.ipfire.org Git - thirdparty/ccache.git/commit
build: Fix zstd build for older CMake versions
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 29 May 2024 18:54:31 +0000 (20:54 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 29 May 2024 19:03:50 +0000 (21:03 +0200)
commit536a632924f4d6543d802833b60127108abb19d2
treea6670456a0d85af962222291fd557137e62881e4
parente782d8b98be3b261f22357ec32173fffda8c763a
build: Fix zstd build for older CMake versions

With CMake 3.17.5 on CentOS7:

    -- Downloading Zstd from the internet since Zstd>=1.3.4 was not found locally and DEPS=AUTO
    CMake Error at cmake/FindZstd.cmake:60 (set_target_properties):
      set_target_properties Can not find target to add properties to:
      libzstd_static
    Call Stack (most recent call first):
      cmake/Dependencies.cmake:29 (find_package)
      CMakeLists.txt:88 (include)

    CMake Error at cmake/FindZstd.cmake:68 (add_library):
      add_library cannot create ALIAS target "dep_zstd" because target
      "libzstd_static" does not already exist.
    Call Stack (most recent call first):
      cmake/Dependencies.cmake:29 (find_package)
      CMakeLists.txt:88 (include)
cmake/FindZstd.cmake