File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1010# TensorFlowFramework_LIBRARY
1111# TensorFlowFramework_LIBRARY_PATH
1212
13+ string (REPLACE "lib64" "lib" TENSORFLOW_ROOT_NO64 ${TENSORFLOW_ROOT} )
14+
1315# define the search path
1416list (APPEND TensorFlow_search_PATHS ${TENSORFLOW_ROOT} )
1517list (APPEND TensorFlow_search_PATHS "${TENSORFLOW_ROOT} /../tensorflow_core" )
18+ list (APPEND TensorFlow_search_PATHS ${TENSORFLOW_ROOT_NO64} )
19+ list (APPEND TensorFlow_search_PATHS "${TENSORFLOW_ROOT_NO64} /../tensorflow_core" )
1620list (APPEND TensorFlow_search_PATHS "/usr/" )
1721list (APPEND TensorFlow_search_PATHS "/usr/local/" )
1822
@@ -28,6 +32,15 @@ find_path(TensorFlow_INCLUDE_DIRS
2832 PATH_SUFFIXES "/include"
2933 NO_DEFAULT_PATH
3034 )
35+ find_path (TensorFlow_INCLUDE_DIRS_GOOGLE
36+ NAMES
37+ google/protobuf/port.h
38+ PATHS ${TensorFlow_search_PATHS}
39+ PATH_SUFFIXES "/include"
40+ NO_DEFAULT_PATH
41+ )
42+ list (APPEND TensorFlow_INCLUDE_DIRS ${TensorFlow_INCLUDE_DIRS_GOOGLE} )
43+
3144if (NOT TensorFlow_INCLUDE_DIRS AND tensorflow_FIND_REQUIRED)
3245 message (FATAL_ERROR
3346 "Not found 'include/tensorflow/core/public/session.h' directory in path '${TensorFlow_search_PATHS} ' "
You can’t perform that action at this time.
0 commit comments