GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Could not find a package configuration file provided by "cppnetlib" (requested version 0.13.0) with any of the following names · Issue #895 · cpp-netlib/cpp-netlib

Could not find a package configuration file provided by "cppnetlib" (requested version 0.13.0) with any of the following names #895

New issue
Copy link
New issue
Copy link
Open
Open
Could not find a package configuration file provided by "cppnetlib" (requested version 0.13.0) with any of the following names#895
Copy link

Description

@Mactarvish
Mactarvish
opened on May 25, 2021
Issue body actions

I have compiled and installed cppnetlib on my Ubuntu following https://cpp-netlib.org/0.13.0/getting_started.html and everything is OK. But when I tried to use it in my project by :
set ( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ~/cpp-netlib-build ) find_package ( cppnetlib 0.13.0 REQUIRED ) include_directories ( ${CPPNETLIB_INCLUDE_DIRS} ) target_link_libraries ( MyApplication ${CPPNETLIB_LIBRARIES} )

I got the error:
`
CMake Error at CMakeLists.txt:9 (find_package):
By not providing "Findcppnetlib.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"cppnetlib", but CMake did not find one.

Could not find a package configuration file provided by "cppnetlib"
(requested version 0.13.0) with any of the following names:

cppnetlibConfig.cmake
cppnetlib-config.cmake

Add the installation prefix of "cppnetlib" to CMAKE_PREFIX_PATH or set
"cppnetlib_DIR" to a directory containing one of the above files. If
"cppnetlib" provides a separate development package or SDK, be sure it has
been installed.

-- Configuring incomplete, errors occurred!
See also "/home/paas_requester/download_image_testbed/build/CMakeFiles/CMakeOutput.log".
Makefile:176: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
`

And I've checked that there's actually no config.cmake under cpp-netlib-build.

Reacted by Teerasak Singhnoi

Activity

  1. deanberris commented on May 26, 2021

    @deanberris
    deanberris
    on May 26, 2021
    Member
    More actions

    What happens when you remove the CMAKE_PREFIX_PATH setting? Typically, the installation process will place the cppnetlibConfig.cmake file in the global CMake registry, unless you install it in a specific installation prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.