Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
54f7dbbe
Commit
54f7dbbe
authored
Sep 04, 2019
by
Jan Möbius
Browse files
Merge branch 'plugin-cmake-improvement' into 'master'
Improve plugin.cmake dependency handling. See merge request
!165
parents
488ead16
4d24c395
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/plugin.cmake
View file @
54f7dbbe
...
...
@@ -207,7 +207,7 @@ macro (_check_plugin_deps _prefix _optional )
if
(
${
_optional
}
STREQUAL
"TRUE"
)
if
(
${
_VAL
}
_FOUND
)
if
(
${
_VAL
}
_FOUND
OR
${
_val
}
_FOUND
)
# Optional dependency found and recursive found, so add definition to enable it
if
(
${
_optional
}
STREQUAL
"TRUE"
)
...
...
@@ -276,6 +276,9 @@ macro (_check_plugin_deps _prefix _optional )
if
(
${
_val
}
_FOUND OR
${
_VAL
}
_FOUND
)
foreach
(
_name
${
_val
}
${
_VAL
}
)
if
(
TARGET
${
_name
}
)
list
(
APPEND
${
_prefix
}
_DEPS_TARGETS
${
_name
}
)
endif
()
if
(
DEFINED
${
_name
}
_INCLUDE_PATH
)
list
(
APPEND
${
_prefix
}
_DEPS_INCDIRS
"
${${
_name
}
_INCLUDE_PATH
}
"
)
endif
()
...
...
@@ -677,6 +680,10 @@ function (_build_openflipper_plugin plugin)
endif
()
endif
()
if
(
${
_PLUGIN
}
_DEPS_TARGETS
)
target_link_libraries
(
Plugin-
${
plugin
}
${${
_PLUGIN
}
_DEPS_TARGETS
}
)
endif
()
# append compiler and linker flags from plugin dependencies
list
(
APPEND
${
_PLUGIN
}
_DEPS_COMPILE_DEFINITIONS
${${
_PLUGIN
}
_CDEFINITIONSADD
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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