Skip to content

Commit c10590e

Browse files
committed
Allow install_thirdparty to set BUILD_SHARED_LIBS
1 parent 4859e4e commit c10590e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/cmake/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ set(CMAKE_OPTIONS
104104
"-DCMAKE_CXX_EXTENSIONS=OFF"
105105
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
106106

107+
if(DEFINED CACHE{BUILD_SHARED_LIBS})
108+
list(APPEND CMAKE_OPTIONS "-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}")
109+
endif()
110+
107111
message(STATUS "Installing third-party packages....")
108112
message(STATUS " opentelemetry-cpp_SOURCE_DIR = ${OTELCPP_SOURCE_DIR}")
109113
message(STATUS " third-party packages = ${_THIRDPARTY_PACKAGE_LIST}")

0 commit comments

Comments
 (0)