[CMake] cmake and dependencies
Tyler Roscoe
tyler at cryptio.net
Thu Jul 23 13:03:40 EDT 2009
On Thu, Jul 23, 2009 at 06:30:55PM +0200, schoappied wrote:
> I try to compile a package on Windows with latest Cmake.
> I've installed libsndfile-1 and libsndfile1-dev
>
> But I got this error:
>
> checking for module 'sndfile>=1.0.11'
> package 'sndfile>=1.0.11' not found
> CMake Error at cmake/modules/FindPkgConfig.cmake:270 (message):
> A required package was not found
> Call Stack (most recent call first):
> cmake/modules/FindPkgConfig.cmake:322 (_pkg_check_modules_internal)
> CMakeLists.txt:116 (PKG_CHECK_MODULES)
What does your find_package() line look like? Are you literally doing
find_package(sndfile>=1.0.11)? Cuz that's, um, not the way to do that.
Where did you install your sndfile libraries? Are you explicitly telling
CMake to look in that directory? Is this location in your PATH?
tyler
More information about the CMake
mailing list