Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
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
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
savoirfairelinux
jami-client-qt
Commits
d7045b5d
Commit
d7045b5d
authored
2 years ago
by
Amin Bandali
Committed by
Adrien Béraud
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake: bump minimum required GCC version up to 8
Change-Id: I67e37155cdca75b83943497c008aaf18edb9a95f
parent
51296aad
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
src/libclient/CMakeLists.txt
+22
-29
22 additions, 29 deletions
src/libclient/CMakeLists.txt
with
22 additions
and
29 deletions
src/libclient/CMakeLists.txt
+
22
−
29
View file @
d7045b5d
...
...
@@ -37,11 +37,11 @@ project(jami-libclient)
if
(
CMAKE_COMPILER_IS_GNUCC
)
execute_process
(
COMMAND
${
CMAKE_C_COMPILER
}
-dumpversion
OUTPUT_VARIABLE GCC_VERSION
)
if
(
GCC_VERSION VERSION_GREATER_EQUAL
4.8
)
message
(
STATUS
"Found GCC version >=
4.8
: "
${
GCC_VERSION
}
)
if
(
GCC_VERSION VERSION_GREATER_EQUAL
8.0
)
message
(
STATUS
"Found GCC version >=
8.0
: "
${
GCC_VERSION
}
)
else
()
message
(
FATAL_ERROR
"Your version of GCC is too old, \
please install GCC
4.8
or
lat
er"
)
please install GCC
8.0
or
new
er"
)
endif
()
endif
()
...
...
@@ -108,32 +108,25 @@ endif()
# grep -E "\-W[a-zA-Z=-]*" -o > /tmp/49;
# sort /tmp/48 /tmp/49 | uniq -u
if
(
CMAKE_COMPILER_IS_GNUCC
)
if
(
GCC_VERSION VERSION_GREATER_EQUAL 4.9
)
add_definitions
(
-Wconditionally-supported
-Wno-cpp
-Wdouble-promotion
-Wdate-time
-Wfloat-conversion
)
endif
()
if
(
GCC_VERSION VERSION_GREATER_EQUAL 5.1
)
add_definitions
(
-Wformat-signedness
-Wnormalized
-Wshift-count-negative
-Wshift-count-overflow
-Wsized-deallocation
-Wsizeof-array-argument
)
endif
()
if
(
GCC_VERSION VERSION_GREATER_EQUAL 6.0
)
add_definitions
(
-Wnull-dereference
-Wshift-negative-value
-Wshift-overflow
-Wduplicated-cond
)
endif
()
add_definitions
(
# GCC 4.9
-Wconditionally-supported
-Wno-cpp
-Wdouble-promotion
-Wdate-time
-Wfloat-conversion
# GCC 5.1
-Wformat-signedness
-Wnormalized
-Wshift-count-negative
-Wshift-count-overflow
-Wsized-deallocation
-Wsizeof-array-argument
# GCC 6.0
-Wnull-dereference
-Wshift-negative-value
-Wshift-overflow
-Wduplicated-cond
)
endif
()
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
...
...
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