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
4b47586a
Commit
4b47586a
authored
Aug 09, 2013
by
Daniele E. Domenichelli
Committed by
Brad King
Oct 08, 2013
Browse files
FindGTK2: Add check to ensure that target exists
parent
61242ccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/FindGTK2.cmake
View file @
4b47586a
...
...
@@ -456,11 +456,13 @@ function(_GTK2_ADD_TARGET_DEPENDS _var)
string
(
TOLOWER
"
${
_var
}
"
_basename
)
get_target_property
(
_configs GTK2::
${
_basename
}
IMPORTED_CONFIGURATIONS
)
_GTK2_ADD_TARGET_DEPENDS_INTERNAL
(
${
_var
}
INTERFACE_LINK_LIBRARIES
${
ARGN
}
)
foreach
(
_config
${
_configs
}
)
_GTK2_ADD_TARGET_DEPENDS_INTERNAL
(
${
_var
}
IMPORTED_LINK_INTERFACE_LIBRARIES_
${
_config
}
${
ARGN
}
)
endforeach
()
if
(
TARGET GTK2::
${
_basename
}
)
get_target_property
(
_configs GTK2::
${
_basename
}
IMPORTED_CONFIGURATIONS
)
_GTK2_ADD_TARGET_DEPENDS_INTERNAL
(
${
_var
}
INTERFACE_LINK_LIBRARIES
${
ARGN
}
)
foreach
(
_config
${
_configs
}
)
_GTK2_ADD_TARGET_DEPENDS_INTERNAL
(
${
_var
}
IMPORTED_LINK_INTERFACE_LIBRARIES_
${
_config
}
${
ARGN
}
)
endforeach
()
endif
()
endfunction
()
function
(
_GTK2_ADD_TARGET_INCLUDE_DIRS _var
)
...
...
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