Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mtxclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
mtxclient
Commits
08100fd0
Verified
Commit
08100fd0
authored
5 years ago
by
Joe Donofry
Browse files
Options
Downloads
Patches
Plain Diff
Use BUILD_SHARED_LIBS vs custom option for building mtxclient as SO
parent
d5cc7038
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+2
-8
2 additions, 8 deletions
CMakeLists.txt
with
2 additions
and
8 deletions
CMakeLists.txt
+
2
−
8
View file @
08100fd0
...
...
@@ -7,7 +7,7 @@ option(BUILD_LIB_TESTS "Build tests" ON)
option
(
BUILD_LIB_EXAMPLES
"Build examples"
ON
)
option
(
COVERAGE
"Calculate test coverage"
OFF
)
option
(
IWYU
"Check headers with include-what-you-use"
OFF
)
option
(
MTX_STATIC
"Specifies whether to build mtxclient as a s
tatic
lib or not"
O
FF
)
option
(
BUILD_SHARED_LIBS
"Specifies whether to build mtxclient as a s
hared library
lib or not"
O
N
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
set
(
CMAKE_CXX_STANDARD 14
)
...
...
@@ -89,7 +89,6 @@ set_package_properties(nlohmann_json PROPERTIES
TYPE REQUIRED
)
set
(
BUILD_SHARED_LIBS ON
)
set
(
Boost_USE_STATIC_LIBS OFF
)
set
(
Boost_USE_STATIC_RUNTIME OFF
)
set
(
Boost_USE_MULTITHREADED ON
)
...
...
@@ -108,12 +107,7 @@ set_package_properties(Boost PROPERTIES
TYPE REQUIRED
)
set
(
LINK_TYPE SHARED
)
if
(
MTX_STATIC
)
set
(
LINK_TYPE STATIC
)
endif
(
MTX_STATIC
)
add_library
(
matrix_client
${
LINK_TYPE
}
add_library
(
matrix_client
lib/http/client.cpp
lib/http/session.cpp
lib/crypto/client.cpp
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment