aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/cmake/external/boringssl.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/cmake/external/boringssl.cmake')
-rw-r--r--tensorflow/contrib/cmake/external/boringssl.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/tensorflow/contrib/cmake/external/boringssl.cmake b/tensorflow/contrib/cmake/external/boringssl.cmake
index dc27eadaca..cca8444e2a 100644
--- a/tensorflow/contrib/cmake/external/boringssl.cmake
+++ b/tensorflow/contrib/cmake/external/boringssl.cmake
@@ -39,8 +39,12 @@ ExternalProject_Add(boringssl
# BUILD_IN_SOURCE 1
INSTALL_COMMAND ""
CMAKE_CACHE_ARGS
+ if(tensorflow_ENABLE_POSITION_INDEPENDENT_CODE)
+ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
+ else()
+ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=OFF
+ endif()
-DCMAKE_BUILD_TYPE:STRING=Release
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF
- -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
)