diff options
author | Ben <bstriner@gmail.com> | 2018-07-25 01:50:56 -0400 |
---|---|---|
committer | Ben <bstriner@gmail.com> | 2018-07-25 01:50:56 -0400 |
commit | a34ada4965a1aac3b192e5544fff40380828f9c5 (patch) | |
tree | d8e0ca1d5751ad3741025bd62a9d1f2d92f32719 /tensorflow/contrib/cmake | |
parent | 9225bbbe0aaaa14b69176576097bb67bae98e6c5 (diff) |
Add PATCH_COMMAND to eigen.cmake
Diffstat (limited to 'tensorflow/contrib/cmake')
-rw-r--r-- | tensorflow/contrib/cmake/external/eigen.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/contrib/cmake/external/eigen.cmake b/tensorflow/contrib/cmake/external/eigen.cmake index 45a0096085..33bb31148d 100644 --- a/tensorflow/contrib/cmake/external/eigen.cmake +++ b/tensorflow/contrib/cmake/external/eigen.cmake @@ -19,6 +19,12 @@ # build_file = "eigen.BUILD", #) +option(eigen_PATCH_FILE "Patch file to apply to eigen" OFF) +set(eigen_PATCH_COMMAND "") +if(eigen_PATCH_FILE) + set(eigen_PATCH_COMMAND PATCH_COMMAND patch -p0 -i "${eigen_PATCH_FILE}") +endif(eigen_PATCH_FILE) + include (ExternalProject) # We parse the current Eigen version and archive hash from the bazel configuration @@ -45,6 +51,7 @@ ExternalProject_Add(eigen URL ${eigen_URL} DOWNLOAD_DIR "${DOWNLOAD_LOCATION}" INSTALL_DIR "${eigen_INSTALL}" + ${eigen_PATCH_COMMAND} CMAKE_CACHE_ARGS -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF |