summaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-05 00:21:16 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:20 +0200
commit9084ff8ba4e06a3a76710599b369b98e8a217e9f (patch)
tree681ee3942c629d42114510f62db075ad005a6eb0 /reference
parentf2037221a69d496f13fc9d143ec85de54f596960 (diff)
Change PREFIX test logic for binding using REGEX.
Change-Id: I42dbc6d0830073cdc0dee8a24e2f482bca1119a5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference')
-rw-r--r--reference/etc/macros.cmake14
1 files changed, 8 insertions, 6 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index af5e542..5a85b86 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -55,12 +55,6 @@ macro(project_targets_populate)
get_target_property(BD ${TARGET} BINARY_DIR)
get_target_property(OUT ${TARGET} OUTPUT_NAME)
- if(${P} STREQUAL "P-NOTFOUND" AND ${T} STREQUAL "BINDING")
- set(P "lib")
- elseif(${P} STREQUAL "P-NOTFOUND")
- set(P "")
- endif(${P} STREQUAL "P-NOTFOUND" AND ${T} STREQUAL "BINDING")
-
if(${T} STREQUAL "BINDING")
add_custom_command(OUTPUT ${WIDGET_LIBDIR}/${P}${TARGET}.so
DEPENDS ${TARGET}
@@ -79,6 +73,14 @@ macro(project_targets_populate)
add_custom_command(OUTPUT ${WIDGET_HTTPDIR}
DEPENDS ${TARGET}
COMMAND cp -r ${BD}/${P}${OUT} ${WIDGET_HTTPDIR}
+ if(P MATCHES "NOTFOUND$")
+ if (${T} STREQUAL "BINDING")
+ set(P "lib")
+ else()
+ set(P "")
+ endif()
+ endif()
+
)
add_custom_target(${POPULE_WIDGET_TARGET} ALL DEPENDS ${WIDGET_HTTPDIR})
elseif(${T} STREQUAL "DATA")