Fix obs build fail on libkernelacl (#531)
author이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 10 Apr 2018 08:46:22 +0000 (17:46 +0900)
committer서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 <sangmin7.seo@samsung.com>
Tue, 10 Apr 2018 08:46:22 +0000 (17:46 +0900)
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
src/kernel/acl/CMakeLists.txt

index 372afc5..da4b7f7 100644 (file)
@@ -35,7 +35,11 @@ target_include_directories(${LIB_KERNELACL} PUBLIC
                            ${RUNTIME_INCLUDES}
                            ${NNFW_ACL_INCLUDES}
                            )
-target_link_libraries(${LIB_KERNELACL} nnfw_util ${NNFW_ACL_LIBS})
+if (${TARGET_OS} STREQUAL "tizen")
+  target_link_libraries(${LIB_KERNELACL} nnfw_util ${NNFW_ACL_LIBS} OpenCL)
+else()
+  target_link_libraries(${LIB_KERNELACL} nnfw_util ${NNFW_ACL_LIBS})
+endif()
 install(TARGETS ${LIB_KERNELACL} DESTINATION lib)
 
 # kernel test executable