summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-11-09 12:17:11 +0100
committerJose Bollo <jose.bollo@iot.bzh>2018-11-12 09:06:36 +0100
commit81bd8f3ace3b99d1d60344cab04205d531efa0f4 (patch)
tree27103346b0e658d6e64bd5848ddb53a9f49fd7b4
parent8e59ed27a6148308fa5ff7ceabd05e9b07d3f68d (diff)
Use target name as output name by default
Change-Id: I32abe9f2ac5ea25e7902f9a1e870d16bb438d5b2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/cmake/cmake.d/03-macros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmake/cmake.d/03-macros.cmake b/src/cmake/cmake.d/03-macros.cmake
index 0327c59..ff240cd 100644
--- a/src/cmake/cmake.d/03-macros.cmake
+++ b/src/cmake/cmake.d/03-macros.cmake
@@ -366,6 +366,9 @@ macro(project_targets_populate)
get_target_property(SD ${TARGET} SOURCE_DIR)
get_target_property(OUT ${TARGET} OUTPUT_NAME)
+ if(OUT MATCHES "NOTFOUND$")
+ set(OUT ${TARGET})
+ endif()
if(P MATCHES "NOTFOUND$")
if (${T} STREQUAL "LIBRARY" OR
${T} MATCHES "^BINDINGV?.?$")