File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
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,9 +32,18 @@ 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/type .pb.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
33- "Not found 'include/ tensorflow/core/public/session.h' directory in path '${TensorFlow_search_PATHS} ' "
46+ "Not found 'tensorflow/core/public/session.h' directory in path '${TensorFlow_search_PATHS} ' "
3447 "You can manually set the tensorflow install path by -DTENSORFLOW_ROOT " )
3548endif ()
3649
You can’t perform that action at this time.
0 commit comments