[cker] cker optimized build option (#8065)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 11 Oct 2019 07:57:04 +0000 (16:57 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 11 Oct 2019 07:57:04 +0000 (16:57 +0900)
Introduce cker optimized build option to disable optimized cker build on eigen usable environment

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/libs/cker/CMakeLists.txt

index f81ee2a..086c5ae 100644 (file)
@@ -1,7 +1,9 @@
 add_library(nnfw_lib_cker INTERFACE)
 
 nnfw_find_package(Eigen QUIET)
-if(Eigen_FOUND)
+option(BUILD_CKER_OPTIMIZE "Build optimize cker library" ON)
+
+if(Eigen_FOUND AND BUILD_CKER_OPTIMIZE)
   target_link_libraries(nnfw_lib_cker INTERFACE eigen)
   target_compile_definitions(nnfw_lib_cker INTERFACE CKER_OPTIMIZED_EIGEN)
 endif(Eigen_FOUND)