Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to import installed packages into a CMake project #44

Open
ac169 opened this issue Dec 13, 2024 · 0 comments
Open

how to import installed packages into a CMake project #44

ac169 opened this issue Dec 13, 2024 · 0 comments

Comments

@ac169
Copy link

ac169 commented Dec 13, 2024

Total install time: 549 us
The package fmt provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt)

    # Or use the header-only version
    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt-header-only)

most packages have the above prompt to import the CMakeLists.txt file after installation, while a small number of packages do not have this prompt after installation. So how to import such packages, for example: vcpkg install wepoll:x64-windows

Computing installation plan...
The following packages are already installed:
    wepoll:[email protected]#3
wepoll:x64-windows is already installed

find_package(wepoll REQUIRED)

By not providing "Findwepoll.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "wepoll", but
  CMake did not find one.

  Could not find a package configuration file provided by "wepoll" with any
  of the following names:

    wepollConfig.cmake
    wepoll-config.cmake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant