Answer the question
In order to leave comments, you need to log in
How to fix library search errors in cmake?
I'm trying to figure out with cmake to automate the assembly of cross-platform applications. I got to the point of using third-party libraries and ran into the following problem.
Example on github . Curl code was taken as an example, which compiles and works fine.
Compiled CMakeLists.txt for this project. And I tried to compile, I build for tests in 2 systems FreeBSD 10 and Fedora 21. And I came across a problem with finding libraries. I broke my head in 3 days of searching, but I did not solve the problem.
Trying to build on Fedora throws a library search error.
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindLibXml2.cmake:69 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:9 (find_package)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question