Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC Server Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Infrastructure and Support
TEC
TEC Server Config
Commits
b279a860
Commit
b279a860
authored
2 years ago
by
Patrick Nonn
Committed by
Martin Christoph Hierholzer
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added FindlibYajl.cmake script
parent
e621221e
No related branches found
No related tags found
1 merge request
!3
update project template
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Modules/FindlibYajl.cmake
+34
-0
34 additions, 0 deletions
cmake/Modules/FindlibYajl.cmake
with
34 additions
and
0 deletions
cmake/Modules/FindlibYajl.cmake
0 → 100644
+
34
−
0
View file @
b279a860
#######################################################################################################################
#
# 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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment