summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>2019-04-19 05:40:57 (GMT)
committerGitHub Enterprise <noreply-CODE@samsung.com>2019-04-19 05:40:57 (GMT)
commitc5403134115c204720dc8bee846811b00e3fc9f7 (patch)
treee756faf67fc6abffb0231fdc0140ff403f8564b5
parent4a249d425d5057cb09fa743d21b9ef3f39c86f1e (diff)
downloadnnfw-c5403134115c204720dc8bee846811b00e3fc9f7.zip
nnfw-c5403134115c204720dc8bee846811b00e3fc9f7.tar.gz
nnfw-c5403134115c204720dc8bee846811b00e3fc9f7.tar.bz2
Use POSITION_INDEPENDENT_CODE property for tflite build (#5026)
Use cmake POSITION_INDEPENDENT_CODE property instead of setting gcc -fPIC compile option directly Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
-rw-r--r--cmake/packages/TensorFlowLite/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/packages/TensorFlowLite/CMakeLists.txt b/cmake/packages/TensorFlowLite/CMakeLists.txt
index c1fee3b..562e7cf 100644
--- a/cmake/packages/TensorFlowLite/CMakeLists.txt
+++ b/cmake/packages/TensorFlowLite/CMakeLists.txt
@@ -60,5 +60,5 @@ list(REMOVE_ITEM TFLITE_SRCS "${TENSORFLOW_LITE_BASE}/kernels/mfcc_test.cc")
add_library(tensorflow-lite STATIC ${TFLITE_SRCS})
target_include_directories(tensorflow-lite SYSTEM PUBLIC ${TFLITE_INCLUDES})
target_compile_definitions(tensorflow-lite PUBLIC "GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK")
-target_compile_options(tensorflow-lite PRIVATE -fPIC)
+set_property(TARGET tensorflow-lite PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(tensorflow-lite eigen ${LIB_PTHREAD} dl)