Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
fffbd725
Commit
fffbd725
authored
Sep 17, 2013
by
Daniele E. Domenichelli
Committed by
Brad King
Oct 08, 2013
Browse files
FindGTK2: Do not add freetype includes if they are not found
On some older system they are not required
parent
b69720d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/FindGTK2.cmake
View file @
fffbd725
...
...
@@ -481,7 +481,9 @@ function(_GTK2_ADD_TARGET_INCLUDE_DIRS _var)
if
(
TARGET GTK2::
${
_basename
}
)
foreach
(
_include
${
ARGN
}
)
set_property
(
TARGET GTK2::
${
_basename
}
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
"
${
_include
}
"
)
if
(
${
_include
}
)
set_property
(
TARGET GTK2::
${
_basename
}
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
"
${
_include
}
"
)
endif
()
endforeach
()
endif
()
endfunction
()
...
...
@@ -571,7 +573,9 @@ endif()
#
find_package
(
Freetype QUIET
)
list
(
APPEND GTK2_INCLUDE_DIRS
${
FREETYPE_INCLUDE_DIR_ft2build
}
${
FREETYPE_INCLUDE_DIR_freetype2
}
)
if
(
${
FREETYPE_INCLUDE_DIR_ft2build
}
AND
${
FREETYPE_INCLUDE_DIR_freetype2
}
)
list
(
APPEND GTK2_INCLUDE_DIRS
${
FREETYPE_INCLUDE_DIR_ft2build
}
${
FREETYPE_INCLUDE_DIR_freetype2
}
)
endif
()
foreach
(
_GTK2_component
${
GTK2_FIND_COMPONENTS
}
)
if
(
_GTK2_component STREQUAL
"gtk"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment