File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ project(Bear
99
1010option (ENABLE_UNIT_TESTS "Build and run unit test for this project" ON )
1111option (ENABLE_FUNC_TESTS "Build and run functional test for this project" ON )
12+ option (ENABLE_MULTILIB "Enable to build with multilib support" OFF )
1213
1314set (CMAKE_CXX_STANDARD 17)
1415set (CMAKE_CXX_STANDARD_REQUIRED ON )
@@ -46,6 +47,7 @@ ExternalProject_Add(BearSource
4647 googletest_dependency
4748 CMAKE_ARGS
4849 -DENABLE_UNIT_TESTS:BOOL =${ENABLE_UNIT_TESTS}
50+ -DENABLE_MULTILIB:BOOL =${ENABLE_MULTILIB}
4951 -DPKG_CONFIG_EXECUTABLE:PATH =${PKG_CONFIG_EXECUTABLE}
5052 CMAKE_CACHE_ARGS
5153 -DCMAKE_PROJECT_VERSION:STRING =${CMAKE_PROJECT_VERSION}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pkg_check_modules(gRPC REQUIRED IMPORTED_TARGET protobuf grpc++)
3232if (UNIX AND NOT APPLE )
3333 set (SUPPORT_PRELOAD 1)
3434endif ()
35- if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
35+ if (ENABLE_MULTILIB )
3636 set (SUPPORT_MULTILIB 1)
3737endif ()
3838
You can’t perform that action at this time.
0 commit comments