From 160a688706e0dfd82ed803c5601ad19eacffe018 Mon Sep 17 00:00:00 2001 From: William Yang Date: Mon, 27 Nov 2023 14:26:18 +0100 Subject: [PATCH] build: emqx forked rebar3 in cmakefile --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 706f2d62..88c983fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,3 +173,8 @@ set_target_properties(quicer_nif include(GNUInstallDirs) install(TARGETS quicer_nif LIBRARY DESTINATION ${PROJECT_SOURCE_DIR}/priv/) +## workaround for emqx forked rebar3 +## For none-emqx rebar3, it should be just a noop of 'Up-to-date' instead of 'installing' +if (DEFINED ENV{REBAR_DEPS_DIR}) +install(TARGETS quicer_nif LIBRARY DESTINATION $ENV{REBAR_DEPS_DIR}/quicer/priv/) +endif()