[CMake] Fix typo in TensorFlowConfig.cmake (#3367)
author채성우/On-Device Lab(SR)/Engineer/삼성전자 <sw4670.chae@samsung.com>
Thu, 25 Apr 2019 06:58:34 +0000 (15:58 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 25 Apr 2019 06:58:34 +0000 (15:58 +0900)
This commit fix typo in TensorFlowConfig.cmake

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
cmake/packages/TensorFlowConfig.cmake

index 1cf5af1..025b551 100644 (file)
@@ -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)