mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 22:25:41 +02:00
cmake: plugins: simplify dependency handling
Move the requirement checks within the respective plugin cmakefile. Use REQUIRED instead of the manual FOUND check and error handling. Note: the tcl check was only moved, since using REQUIRED explodes in CI. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
committed by
Sébastien Helleu
parent
440907e1cd
commit
a413d16038
@@ -19,6 +19,8 @@
|
||||
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
find_package(V8 REQUIRED)
|
||||
|
||||
enable_language(CXX)
|
||||
|
||||
add_library(javascript MODULE
|
||||
@@ -28,9 +30,7 @@ add_library(javascript MODULE
|
||||
)
|
||||
set_target_properties(javascript PROPERTIES PREFIX "")
|
||||
|
||||
if(V8_FOUND)
|
||||
include_directories(${V8_INCLUDE_DIR})
|
||||
target_link_libraries(javascript ${V8_LIBRARY} weechat_plugins_scripts coverage_config)
|
||||
endif()
|
||||
include_directories(${V8_INCLUDE_DIR})
|
||||
target_link_libraries(javascript ${V8_LIBRARY} weechat_plugins_scripts coverage_config)
|
||||
|
||||
install(TARGETS javascript LIBRARY DESTINATION "${WEECHAT_LIBDIR}/plugins")
|
||||
|
||||
Reference in New Issue
Block a user