aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/cmake
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-13 12:11:54 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-13 12:11:54 -0700
commit3f064b9a3e5125d20858c754e5d1db309b25b87f (patch)
tree1dd74873b5fee0b64f31928aff6245c8b9f022ed /tensorflow/contrib/cmake
parent0fbeac58e098cf0ac8e131617ebb6780e10c9606 (diff)
parentf35dc0a522ae630902baa5be16d2a53b59266770 (diff)
Merge pull request #19358 from brunomorishita:pr.fix_cmake_libpng
PiperOrigin-RevId: 212854521
Diffstat (limited to 'tensorflow/contrib/cmake')
-rw-r--r--tensorflow/contrib/cmake/external/png.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/contrib/cmake/external/png.cmake b/tensorflow/contrib/cmake/external/png.cmake
index ad2af01bc0..1a147e9c8e 100644
--- a/tensorflow/contrib/cmake/external/png.cmake
+++ b/tensorflow/contrib/cmake/external/png.cmake
@@ -13,6 +13,7 @@
# limitations under the License.
# ==============================================================================
include (ExternalProject)
+include (GNUInstallDirs)
set(png_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/png_archive)
set(png_URL https://mirror.bazel.build/github.com/glennrp/libpng/archive/v1.6.34.tar.gz)
@@ -35,7 +36,7 @@ if(WIN32)
endif()
endif()
else()
- set(png_STATIC_LIBRARIES ${CMAKE_BINARY_DIR}/png/install/lib/libpng16.a)
+ set(png_STATIC_LIBRARIES ${CMAKE_BINARY_DIR}/png/install/${CMAKE_INSTALL_LIBDIR}/libpng16.a)
endif()
set(png_HEADERS