ezquake-source icon indicating copy to clipboard operation
ezquake-source copied to clipboard

BUG: vcpkg: _add_library cannot create ALIAS target "Dep::target_name" because target "actual-target" does not already exist

Open ethindp opened this issue 10 months ago • 0 comments

Please search for existing issues and check for potential duplicates before filing yours.

ezQuake version: (Specify the Git commit hash if using a non-stable build - this is available through the /version command) 3.6.5-154-g16c5116d (7937~16c5116de) OS/device including version: Specify GPU model, drivers, and the renderer (classic or modern) if graphics-related. Windows (win32), MSVC Describe the bug When building with latest VCPKG, I get errors like:

-- Found JPEG: optimized;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/lib/jpeg.lib;debug;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/debug/lib/jpeg.lib (found version "62")
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:639 (_add_library):
  _add_library cannot create ALIAS target "Dep::PCRE2" because target
  "pcre2::pcre2-8-static" does not already exist.
Call Stack (most recent call first):
  cmake/CheckDependency.cmake:28 (add_library)
  CMakeLists.txt:137 (check_dependency)


-- Found PNG: optimized;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/lib/libpng16.lib;debug;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.43")
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:639 (_add_library):
  _add_library cannot create ALIAS target "Dep::SDL2" because target
  "SDL2::SDL2-static" does not already exist.
Call Stack (most recent call first):
  cmake/CheckDependency.cmake:28 (add_library)
  CMakeLists.txt:139 (check_dependency)


-- Found ZLIB: optimized;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/lib/zlib.lib;debug;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/debug/lib/zlibd.lib (found suitable version "1.3.1", minimum required is "1")
-- Found ZLIB: optimized;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/lib/zlib.lib;debug;C:/Users/Ethin/source/ezquake-source/build-static/vcpkg_installed/x64-windows/debug/lib/zlibd.lib (found version "1.3.1")
-- Configuring incomplete, errors occurred!

I am using the vcpkg build mode. To Reproduce Steps to reproduce the behavior:

  1. Clone source code with latest vcpkg
  2. Run bootstrap
  3. Run cmake --preset static
  4. See error

Expected behavior This shouldn't happen and configuration should succeed.

Screenshots N/A

Additional context I am working on implementing some accessibility features into EZquake.

ethindp avatar Feb 07 '25 04:02 ethindp