Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Artalus
CMake
Commits
0c46750d
Commit
0c46750d
authored
8 years ago
by
Brad King
Committed by
Kitware Robot
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge topic 'FindEXPAT-use-PkgConfig'
fc695a77
FindEXPAT: use hints from PkgConfig
parents
d7ca93f6
fc695a77
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/FindEXPAT.cmake
+6
-2
6 additions, 2 deletions
Modules/FindEXPAT.cmake
with
6 additions
and
2 deletions
Modules/FindEXPAT.cmake
+
6
−
2
View file @
0c46750d
...
...
@@ -25,11 +25,15 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
find_package
(
PkgConfig QUIET
)
pkg_check_modules
(
PC_EXPAT QUIET expat
)
# Look for the header file.
find_path
(
EXPAT_INCLUDE_DIR NAMES expat.h
)
find_path
(
EXPAT_INCLUDE_DIR NAMES expat.h
HINTS
${
PC_EXPAT_INCLUDE_DIRS
}
)
# Look for the library.
find_library
(
EXPAT_LIBRARY NAMES expat libexpat
)
find_library
(
EXPAT_LIBRARY NAMES expat libexpat
HINTS
${
PC_EXPAT_LIBRARY_DIRS
}
)
if
(
EXPAT_INCLUDE_DIR AND EXISTS
"
${
EXPAT_INCLUDE_DIR
}
/expat.h"
)
file
(
STRINGS
"
${
EXPAT_INCLUDE_DIR
}
/expat.h"
expat_version_str
...
...
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