Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
indiff7643
Terarkdb
提交
9cd06946
T
Terarkdb
项目概览
indiff7643
/
Terarkdb
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Terarkdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9cd06946
编写于
12月 03, 2020
作者:
G
guokuankuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix external libs cmake_build_type
上级
78b8aaa7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
third-party/CMakeLists.txt
third-party/CMakeLists.txt
+4
-4
未找到文件。
third-party/CMakeLists.txt
浏览文件 @
9cd06946
...
@@ -29,7 +29,7 @@ IF(WITH_SNAPPY)
...
@@ -29,7 +29,7 @@ IF(WITH_SNAPPY)
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/snappy
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/snappy
CONFIGURE_COMMAND mkdir -p build
CONFIGURE_COMMAND mkdir -p build
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
BUILD_COMMAND cd build && cmake ../ -DCMAKE_INSTALL_PREFIX=
${
CMAKE_BINARY_DIR
}
-DSNAPPY_BUILD_TESTS=OFF -DHAVE_LIBLZO2=OFF && make -j 10
BUILD_COMMAND cd build && cmake ../ -DCMAKE_INSTALL_PREFIX=
${
CMAKE_BINARY_DIR
}
-D
CMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
-D
SNAPPY_BUILD_TESTS=OFF -DHAVE_LIBLZO2=OFF && make -j 10
INSTALL_COMMAND cd build && ls -l && make install && cd ../ && rm -rf build
)
INSTALL_COMMAND cd build && ls -l && make install && cd ../ && rm -rf build
)
ADD_LIBRARY
(
snappy STATIC IMPORTED GLOBAL
)
ADD_LIBRARY
(
snappy STATIC IMPORTED GLOBAL
)
ADD_DEPENDENCIES
(
snappy snappy-project
)
ADD_DEPENDENCIES
(
snappy snappy-project
)
...
@@ -49,7 +49,7 @@ IF(WITH_BYTEDANCE_METRICS)
...
@@ -49,7 +49,7 @@ IF(WITH_BYTEDANCE_METRICS)
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/metrics2-cmake
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/metrics2-cmake
CONFIGURE_COMMAND rm -rf cmake-build && mkdir -p cmake-build && mkdir -p
${
CMAKE_BINARY_DIR
}
/lib
CONFIGURE_COMMAND rm -rf cmake-build && mkdir -p cmake-build && mkdir -p
${
CMAKE_BINARY_DIR
}
/lib
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
BUILD_COMMAND cd cmake-build && cmake ../ && make -j $
(
nproc
)
BUILD_COMMAND cd cmake-build && cmake ../
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
&& make -j $
(
nproc
)
# metrics2 doesn't have a install instruction, so we have to manully install it
# metrics2 doesn't have a install instruction, so we have to manully install it
INSTALL_COMMAND cp cmake-build/libmetrics2.a
${
CMAKE_BINARY_DIR
}
/lib/
)
INSTALL_COMMAND cp cmake-build/libmetrics2.a
${
CMAKE_BINARY_DIR
}
/lib/
)
ADD_LIBRARY
(
metrics2 STATIC IMPORTED GLOBAL
)
ADD_LIBRARY
(
metrics2 STATIC IMPORTED GLOBAL
)
...
@@ -70,7 +70,7 @@ IF(WITH_ZLIB)
...
@@ -70,7 +70,7 @@ IF(WITH_ZLIB)
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/zlib
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/zlib
CONFIGURE_COMMAND rm -rf build && mkdir -p build
CONFIGURE_COMMAND rm -rf build && mkdir -p build
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
BUILD_COMMAND cd build && cmake ../ -DCMAKE_INSTALL_PREFIX=
${
CMAKE_BINARY_DIR
}
&& make
BUILD_COMMAND cd build && cmake ../ -DCMAKE_INSTALL_PREFIX=
${
CMAKE_BINARY_DIR
}
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
&& make
# zlib compile will produce some dirty files, we need to clean them.
# zlib compile will produce some dirty files, we need to clean them.
INSTALL_COMMAND cd build && make install && cd ../ && rm -rf build zconf.h.included && git checkout .
)
INSTALL_COMMAND cd build && make install && cd ../ && rm -rf build zconf.h.included && git checkout .
)
ADD_LIBRARY
(
zlib STATIC IMPORTED GLOBAL
)
ADD_LIBRARY
(
zlib STATIC IMPORTED GLOBAL
)
...
@@ -91,7 +91,7 @@ IF(WITH_GFLAGS)
...
@@ -91,7 +91,7 @@ IF(WITH_GFLAGS)
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/gflags
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/gflags
CONFIGURE_COMMAND rm -rf build-cmake && mkdir -p build-cmake
CONFIGURE_COMMAND rm -rf build-cmake && mkdir -p build-cmake
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
BUILD_COMMAND cd build-cmake && cmake ../ -DCMAKE_INSTALL_PREFIX=
${
CMAKE_BINARY_DIR
}
&& make
BUILD_COMMAND cd build-cmake && cmake ../ -DCMAKE_INSTALL_PREFIX=
${
CMAKE_BINARY_DIR
}
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
&& make
INSTALL_COMMAND cd build-cmake && make install
)
INSTALL_COMMAND cd build-cmake && make install
)
ADD_LIBRARY
(
gflags STATIC IMPORTED GLOBAL
)
ADD_LIBRARY
(
gflags STATIC IMPORTED GLOBAL
)
ADD_DEPENDENCIES
(
gflags gflags-project
)
ADD_DEPENDENCIES
(
gflags gflags-project
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录