Skip to content

Commit

Permalink
Change CMake syntax to be compatible with old versions of CMake (#3196)
Browse files Browse the repository at this point in the history
Signed-off-by: Max H. Gerlach <git@maxgerlach.de>
  • Loading branch information
maxhgerlach committed Oct 5, 2021
1 parent 38cf276 commit 7798660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindTensorflow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (LEN EQUAL "4")
string(REPLACE " " ";" Tensorflow_LIBRARIES_LIST "${Tensorflow_LIBRARIES}")
list(GET Tensorflow_LIBRARIES_LIST 0 Tensorflow_LIB_PATH_ARGUMENT)
string(REGEX REPLACE "^-L" "" Tensorflow_LIB_PATH ${Tensorflow_LIB_PATH_ARGUMENT})
if (Tensorflow_VERSION VERSION_GREATER_EQUAL "2.6")
if (Tensorflow_VERSION VERSION_GREATER "2.6" OR Tensorflow_VERSION VERSION_EQUAL "2.6")
# # XLA implementations are in _pywrap_tensorflow_internal.so
set(Tensorflow_LIBRARIES "${Tensorflow_LIBRARIES} ${Tensorflow_LIB_PATH}/python/_pywrap_tensorflow_internal.so")
endif()
Expand Down

0 comments on commit 7798660

Please sign in to comment.