Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
obs-studio
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
Yunxiang Li
obs-studio
Commits
bffbe943
Commit
bffbe943
authored
10 years ago
by
BtbN
Committed by
Jim
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix fontconfig cmake module
parent
9f8b74b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Modules/FindFontconfig.cmake
+23
-28
23 additions, 28 deletions
cmake/Modules/FindFontconfig.cmake
with
23 additions
and
28 deletions
cmake/Modules/FindFontconfig.cmake
+
23
−
28
View file @
bffbe943
...
...
@@ -3,37 +3,32 @@
# FONTCONFIG_FOUND
# FONTCONFIG_INCLUDE_DIRS
# FONTCONFIG_LIBRARIES
#
if
(
FONTCONFIG_INCLUDE_DIRS AND FONTCONFIG_LIBRARIES
)
set
(
FONTCONFIG_FOUND TRUE
)
else
()
find_package
(
PkgConfig QUIET
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
_FONTCONFIG QUIET fontconfig
)
endif
()
find_package
(
PkgConfig QUIET
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
_FONTCONFIG QUIET fontconfig
)
endif
()
find_path
(
FONTCONFIG_INCLUDE_DIR
NAMES fontconfig/fontconfig.h
HINTS
${
_FONTCONFIG_INCLUDE_DIRS
}
PATHS
/usr/include /usr/local/include /opt/local/include
)
find_path
(
FONTCONFIG_INCLUDE_DIR
NAMES fontconfig/fontconfig.h
HINTS
${
_FONTCONFIG_INCLUDE_DIRS
}
PATHS
/usr/include /usr/local/include /opt/local/include
)
find_library
(
FONTCONFIG_LIB
NAMES fontconfig
HINTS
${
_FONTCONFIG_LIBRARY_DIRS
}
PATHS
/usr/lib /usr/local/lib /opt/local/lib
)
find_library
(
FONTCONFIG_LIB
NAMES fontconfig
HINTS
${
_FONTCONFIG_LIBRARY_DIRS
}
PATHS
/usr/lib /usr/local/lib /opt/local/lib
)
set
(
FONTCONFIG_INCLUDE_DIRS
${
FONTCONFIG_INCLUDE_DIR
}
CACHE PATH
"fontconfig include dir"
)
set
(
FONTCONFIG_
LIBRARIES
"
${
FONTCONFIG_LIB
}
"
CACHE STRING
"fontconfig libraries"
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
Fontconfig DEFAULT_MSG FONTCONFIG_LIB
FONTCONFIG_
INCLUDE_DIR
)
mark_as_advanced
(
FONTCONFIG_INCLUDE_DIR FONTCONFIG_LIB
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
Fontconfig DEFAULT_MSG FONTCONFIG_LIB
FONTCONFIG_INCLUDE_DIR
)
mark_as_advanced
(
FONTCONFIG_INCLUDE_DIR FONTCONFIG_LIB
)
if
(
FONTCONFIG_FOUND
)
set
(
FONTCONFIG_INCLUDE_DIRS
${
FONTCONFIG_INCLUDE_DIR
}
)
set
(
FONTCONFIG_LIBRARIES
"
${
FONTCONFIG_LIB
}
"
)
endif
()
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