Skip to content
Snippets Groups Projects
Commit b279a860 authored by Patrick Nonn's avatar Patrick Nonn Committed by Martin Christoph Hierholzer
Browse files

Added FindlibYajl.cmake script

parent e621221e
No related branches found
No related tags found
1 merge request!3update project template
#######################################################################################################################
#
# cmake module for finding the yajl library
#
# returns:
# libYajl_FOUND : true or false, depending on whether the package was found
# libYajl_LIBRARY : path to the library
# @author Patrick Nonn, DESY
#
#######################################################################################################################
#######################################################################################################################
#
# IMPORTANT NOTE:
#
# DO NOT MODIFY THIS FILE inside a project. Instead update the project-template repository and pull the change from
# there. Make sure to keep the file generic, since it will be used by other projects, too.
#
# If you have modified this file inside a project despite this warning, make sure to cherry-pick all your changes
# into the project-template repository immediately.
#
#######################################################################################################################
set(libYajl_FOUND 0)
find_library(libYajl_LIBRARY
NAMES yajl yajl.so libyajl.so
PATHS /usr/lib /usr/lib32 /usr/lib64 /usr/local/lib
HINTS ${CMAKE_INSTALL_LIBDIR}
)
# use a macro provided by CMake to check if all the listed arguments are valid and set Yajl_FOUND accordingly
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(libYajl REQUIRED_VARS libYajl_LIBRARY)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment