From: 채성우/On-Device Lab(SR)/Engineer/삼성전자 Date: Thu, 25 Apr 2019 06:58:34 +0000 (+0900) Subject: [CMake] Fix typo in TensorFlowConfig.cmake (#3367) X-Git-Tag: nncc_backup~663 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6991e8c4aaee1abb052b1d247fbdcba13b0e12b8;p=platform%2Fcore%2Fml%2Fnnfw.git [CMake] Fix typo in TensorFlowConfig.cmake (#3367) This commit fix typo in TensorFlowConfig.cmake Signed-off-by: seongwoo --- diff --git a/cmake/packages/TensorFlowConfig.cmake b/cmake/packages/TensorFlowConfig.cmake index 1cf5af1..025b551 100644 --- a/cmake/packages/TensorFlowConfig.cmake +++ b/cmake/packages/TensorFlowConfig.cmake @@ -5,24 +5,24 @@ set(TENSORFLOW_PREFIX "/usr" CACHE PATH "The location of pre-installed TensorFlo function(_TensorFlow_import) # Find the header & lib find_library(TensorFlow_LIB NAMES tensorflow PATHS "${TENSORFLOW_PREFIX}/lib") - find_path(TenorFlow_INCLUDE_DIR NAMES tensorflow/c/c_api.h PATHS "${TENSORFLOW_PREFIX}/include") + find_path(TensorFlow_INCLUDE_DIR NAMES tensorflow/c/c_api.h PATHS "${TENSORFLOW_PREFIX}/include") # TODO Check TensorFlow version (if possible) - if(NOT TensorFlow_LIB OR NOT TenorFlow_INCLUDE_DIR) + if(NOT TensorFlow_LIB OR NOT TensorFlow_INCLUDE_DIR) message(STATUS "Found TensorFlow: FALSE") set(TensorFlow_FOUND FALSE PARENT_SCOPE) return() - endif(NOT TensorFlow_LIB OR NOT TenorFlow_INCLUDE_DIR) + endif(NOT TensorFlow_LIB OR NOT TensorFlow_INCLUDE_DIR) # Add tensorflow target (if necessary) if(NOT TARGET tensorflow) - message(STATUS "Found TensorFlow (include: ${TenorFlow_INCLUDE_DIR}, library: ${TensorFlow_LIB})") + message(STATUS "Found TensorFlow (include: ${TensorFlow_INCLUDE_DIR}, library: ${TensorFlow_LIB})") # NOTE IMPORTED target may be more appropriate for this case add_library(tensorflow INTERFACE) target_link_libraries(tensorflow INTERFACE ${TensorFlow_LIB}) - target_include_directories(tensorflow INTERFACE ${TenorFlow_INCLUDE_DIR}) + target_include_directories(tensorflow INTERFACE ${TensorFlow_INCLUDE_DIR}) endif(NOT TARGET tensorflow) set(TensorFlow_FOUND TRUE PARENT_SCOPE)