Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
5b29016c
Unverified
Commit
5b29016c
authored
Dec 28, 2020
by
Kip
Committed by
GitHub
Dec 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #854 from Tachi107/master
Modernize CMakeLists.txt
parents
9a65f409
a48464d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
CMakeLists.txt
CMakeLists.txt
+9
-6
debian/changelog
debian/changelog
+2
-2
No files found.
CMakeLists.txt
View file @
5b29016c
cmake_minimum_required
(
VERSION 3.
4
)
cmake_minimum_required
(
VERSION 3.
9
)
set
(
CMAKE_BUILD_TYPE_INIT Release
)
...
...
@@ -13,13 +13,13 @@ project (pistache
include
(
GNUInstallDirs
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers"
)
add_compile_options
(
-Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
PROJECT_SOURCE_DIR
}
/CMakeModules
)
include
(
CheckAtomic
)
if
(
CMAKE_BUILD_TYPE MATCHES
"Debug"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g -O0 -ftest-coverage -fstack-protector-all --param=ssp-buffer-size=4"
)
add_compile_options
(
-g -Og -ftest-coverage -fstack-protector-all --param=ssp-buffer-size=4
)
endif
()
option
(
BUILD_SHARED_LIBS
"build shared library"
ON
)
...
...
@@ -31,8 +31,12 @@ option(PISTACHE_INSTALL "add pistache as install target (recommended)" ON)
option
(
PISTACHE_USE_SSL
"add support for SSL server"
OFF
)
# require fat LTO objects in static library
if
(
CMAKE_CXX_FLAGS MATCHES
"-flto"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-ffat-lto-objects"
)
if
(
CMAKE_INTERPROCEDURAL_OPTIMIZATION OR CMAKE_CXX_FLAGS MATCHES
"-flto"
OR CMAKE_CXX_FLAGS MATCHES
"-flto=thin"
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"GNU"
)
add_compile_options
(
-ffat-lto-objects
)
elseif
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
add_compile_options
(
-flto=full
)
endif
()
endif
()
if
(
PISTACHE_BUILD_TESTS
)
...
...
@@ -226,4 +230,3 @@ endif()
# dist target to the generated makefile...
include
(
CPack
)
add_custom_target
(
dist COMMAND
${
CMAKE_MAKE_PROGRAM
}
package_source
)
debian/changelog
View file @
5b29016c
pistache (0.0.002-pistache1)
focal
; urgency=medium
pistache (0.0.002-pistache1)
groovy
; urgency=medium
* Latest upstream.
-- Kip Warner <kip@thevertigo.com> Sun,
02 Aug 2020 18:26:47
-0700
-- Kip Warner <kip@thevertigo.com> Sun,
27 Dec 2020 16:40:00
-0700
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