Fix installation path
authorJonghyun Park <jh1302.park@samsung.com>
Mon, 26 Feb 2018 01:19:58 +0000 (10:19 +0900)
committerJonghyun Park <jh1302.park@samsung.com>
Mon, 26 Feb 2018 01:19:58 +0000 (10:19 +0900)
This commit fixes incorrect installation path configuration to allow
local install via CMAKE_INSTALL_PREFIX option.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
externals/CMakeLists.txt
tools/tflite_run/CMakeLists.txt

index cee51f9..b973337 100644 (file)
@@ -44,4 +44,4 @@ target_include_directories(tensorflow_lite PUBLIC ${TFLITE_INCLUDES})
 target_compile_definitions(tensorflow_lite PUBLIC "GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK")
 target_link_libraries(tensorflow_lite pthread dl)
 
-install(TARGETS tensorflow_lite ARCHIVE DESTINATION "${PREFIX}/lib")
+install(TARGETS tensorflow_lite ARCHIVE DESTINATION lib)
index b052f19..0c513a2 100644 (file)
@@ -3,4 +3,4 @@ list(APPEND TFLITE_RUN_SRCS "src/tflite_run.cc")
 add_executable(tflite_run ${TFLITE_RUN_SRCS})
 target_link_libraries(tflite_run tensorflow_lite)
 
-install(TARGETS tflite_run DESTINATION "${PREFIX}/bin")
+install(TARGETS tflite_run DESTINATION bin)