Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
a6d7e207
Commit
a6d7e207
authored
Jan 07, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename some variables
parent
4eeeeb19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
CMakeLists.txt
CMakeLists.txt
+13
-4
No files found.
CMakeLists.txt
View file @
a6d7e207
...
...
@@ -91,21 +91,30 @@ endif()
include
(
FindProtobuf
)
include
(
FindThreads
)
find_path
(
LEVELDB_
HEADER
NAMES leveldb/db.h
)
find_path
(
LEVELDB_
INCLUDE_PATH
NAMES leveldb/db.h
)
find_library
(
LEVELDB_LIB NAMES leveldb
)
if
((
NOT LEVELDB_INCLUDE_PATH
)
OR
(
NOT LEVELDB_LIB
))
message
(
FATAL_ERROR
"Fail to find leveldb"
)
endif
()
if
(
WITH_GLOG
)
find_path
(
GLOG_
HEADER
NAMES glog/logging.h
)
find_path
(
GLOG_
INCLUDE_PATH
NAMES glog/logging.h
)
find_library
(
GLOG_LIB NAMES glog
)
include_directories
(
${
GLOG_HEADER
}
)
if
((
NOT GLOG_INCLUDE_PATH
)
OR
(
NOT GLOG_LIB
))
message
(
FATAL_ERROR
"Fail to find glog"
)
endif
()
include_directories
(
${
GLOG_INCLUDE_PATH
}
)
endif
()
find_library
(
PROTOC_LIB NAMES protoc
)
if
(
NOT PROTOC_LIB
)
message
(
FATAL_ERROR
"Fail to find protoc lib"
)
endif
()
include_directories
(
${
GFLAGS_INCLUDE_PATH
}
${
PROTOBUF_INCLUDE_DIRS
}
${
LEVELDB_
HEADER
}
${
LEVELDB_
INCLUDE_PATH
}
)
set
(
DYNAMIC_LIB
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment