cmake: Update absl.cmake

Use Find<module>.cmake instead of <module>config.cmake to remove absl_DIR hack.

PiperOrigin-RevId: 356438974
Change-Id: I5de67e21c2e55cad20ce3da002260acdd98c06b3
This commit is contained in:
Terry Heo 2021-02-08 23:55:35 -08:00 committed by TensorFlower Gardener
parent aae0fc015b
commit 792639b6e6
2 changed files with 1 additions and 3 deletions
tensorflow/lite
CMakeLists.txt
tools/cmake/modules

View File

@ -57,8 +57,6 @@ set(CMAKE_PREFIX_PATH
"${TFLITE_SOURCE_DIR}/tools/cmake/modules"
${CMAKE_PREFIX_PATH}
)
# b/168750039: To workaround absl module not found error on Android build.
set(absl_DIR "${TFLITE_SOURCE_DIR}/tools/cmake/modules")
option(TFLITE_ENABLE_RUY "Enable experimental RUY integration" OFF)
option(TFLITE_ENABLE_RESOURCE "Enable experimental support for resources" ON)
@ -125,7 +123,7 @@ macro(populate_tf_source_vars RELATIVE_DIR SOURCES_VAR)
)
endmacro()
# Find TensorFlow Lite dependencies.
find_package(absl REQUIRED CONFIG)
find_package(absl REQUIRED)
find_package(eigen REQUIRED)
find_package(farmhash REQUIRED)
find_package(fft2d REQUIRED)