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

After installing cmake-3.7.1 the cmake example fails on OSX #104

Open
cynthia-rempel opened this issue Dec 23, 2016 · 2 comments
Open

After installing cmake-3.7.1 the cmake example fails on OSX #104

cynthia-rempel opened this issue Dec 23, 2016 · 2 comments

Comments

@cynthia-rempel
Copy link

Happy Holidays and thanks for all you do!

CMake reports:

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

CheckConfig.cmake
check-config.cmake

A work-around appears to be running:

ln -s check.cmake check-config.cmake

From the CMAKE_INSTALL_PREFIX/cmake dir

Could you please ensure there is a check-config.cmake installed? It might be useful to have both check.cmake and check-config.cmake for backwards and forwards compatibility...

@brarcher
Copy link
Contributor

I'm only partially familiar with CMake and all it can do. The Check project's purpose for supporting CMake was to enable Windows based systems to compile and use Check. For Unix based systems it may be best to use the autotools configure script.

That being said, if I can help resolve this I'll try. Can you give me instructions on how you got your system into this setup? Namely, did you compile Check from source and install into a specific directory, use something like Homebrew, or something else? When you attempted to compile the example was it from a specific release? What additional options did you pass to cmake, if any?

@mikkoi
Copy link
Contributor

mikkoi commented Sep 19, 2019

I believe this issue is fixed with the latest merges to master. The install tree is now this:

../install-Debug-check/
├── bin
│   └── checkmk
├── include
│   ├── check.h
│   └── check_stdint.h
├── lib
│   ├── cmake
│   │   └── check
│   │       ├── check-config.cmake
│   │       ├── check-config-version.cmake
│   │       ├── check-targets.cmake
│   │       └── check-targets-debug.cmake
│   ├── libcheck.a
│   ├── libcheck.so -> libcheck.so.0
│   ├── libcheck.so.0 -> libcheck.so.0.13.0
│   ├── libcheck.so.0.13.0
│   └── pkgconfig
│       └── check.pc
└── share
    └── man
        └── man1
            └── checkmk.1

It contains all the needed files for a CMake find_library to succeed. I am using this command in my own project rubik: find_package(Check 0.12.0 REQUIRED CONFIG). Just remember to point the CMake variable Check_ROOT to the installation unless you have installed Check into system directories.

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

3 participants