[encodump] Build only when prepared (#9406)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Thu, 5 Dec 2019 09:57:47 +0000 (18:57 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 5 Dec 2019 09:57:47 +0000 (18:57 +0900)
This commit amends encodump build policy: encodump will not be built
when its dependency not built.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
compiler/encodump/CMakeLists.txt

index 10f3e0d..58fe17a 100644 (file)
@@ -1,3 +1,11 @@
+if(NOT TARGET enco_intf_frontend)
+  return()
+endif(NOT TARGET enco_intf_frontend)
+
+if(NOT TARGET enco_core)
+  return()
+endif(NOT TARGET enco_core)
+
 file(GLOB_RECURSE SOURCES "src/*.cpp")
 
 add_executable(encodump ${SOURCES})