Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
savoirfairelinux
opendht
Commits
b9cc8488
Commit
b9cc8488
authored
8 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
cmake: remove OPENDHT_DEBUG flag
Replace with -DCMAKE_BUILD_TYPE=Debug
parent
65bdfaf2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-15
10 additions, 15 deletions
CMakeLists.txt
with
10 additions
and
15 deletions
CMakeLists.txt
+
10
−
15
View file @
b9cc8488
...
...
@@ -13,16 +13,23 @@ set (exec_prefix "\${prefix}")
set
(
libdir
"
\$
{exec_prefix}/lib"
)
set
(
includedir
"
\$
{prefix}/include"
)
option
(
OPENDHT_DEBUG
"Build with debug flags"
OFF
)
option
(
OPENDHT_STATIC
"Build static library"
ON
)
option
(
OPENDHT_SHARED
"Build shared library"
ON
)
option
(
OPENDHT_LTO
"Build with LTO"
OFF
)
option
(
OPENDHT_PYTHON
"Build Python bindings"
OFF
)
option
(
OPENDHT_TOOLS
"Build DHT tools"
ON
)
option
(
OPENDHT_LTO
"Build with LTO"
OFF
)
find_package
(
GnuTLS 3.3 REQUIRED
)
find_package
(
Msgpack 1.2 REQUIRED
)
if
(
OPENDHT_TOOLS
)
find_package
(
Readline 6 REQUIRED
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-pthread -std=c++11 -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -pedantic-errors"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT"
)
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE Release
)
endif
()
if
(
OPENDHT_LTO
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-flto"
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
...
...
@@ -33,12 +40,6 @@ if (OPENDHT_LTO)
endif
()
endif
()
find_package
(
GnuTLS 3.3 REQUIRED
)
find_package
(
Msgpack 1.2 REQUIRED
)
if
(
OPENDHT_TOOLS
)
find_package
(
Readline 6 REQUIRED
)
endif
()
list
(
APPEND opendht_SOURCES
src/utils.cpp
src/infohash.cpp
...
...
@@ -96,12 +97,6 @@ include_directories (
${
CMAKE_CURRENT_BINARY_DIR
}
/include/
)
if
(
OPENDHT_DEBUG
)
set
(
CMAKE_BUILD_TYPE Debug
)
else
()
set
(
CMAKE_BUILD_TYPE Release
)
endif
()
if
(
NOT DEFINED CMAKE_INSTALL_LIBDIR
)
set
(
CMAKE_INSTALL_LIBDIR lib
)
endif
()
...
...
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