Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
code
pugs
Commits
7da5dcd6
Commit
7da5dcd6
authored
4 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Update CMake, gcc and clang minimal versions
New requirements - CMake 3.10 - gcc 8 - clang 8
parent
d738bc37
No related branches found
No related tags found
1 merge request
!50
Update/gitlab ci
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+4
-12
4 additions, 12 deletions
CMakeLists.txt
with
4 additions
and
12 deletions
CMakeLists.txt
+
4
−
12
View file @
7da5dcd6
cmake_minimum_required
(
VERSION 3.
4
)
cmake_minimum_required
(
VERSION 3.
10
)
# CMake utils
# CMake utils
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
...
@@ -81,8 +81,8 @@ endif()
...
@@ -81,8 +81,8 @@ endif()
#------------------------------------------------------
#------------------------------------------------------
# Checks if compiler version is compatible with Pugs sources
# Checks if compiler version is compatible with Pugs sources
set
(
GNU_CXX_MIN_VERSION
"
7
.0.0"
)
set
(
GNU_CXX_MIN_VERSION
"
8
.0.0"
)
set
(
CLANG_CXX_MIN_VERSION
"
5
.0.0"
)
set
(
CLANG_CXX_MIN_VERSION
"
8
.0.0"
)
# Pugs default compiler flags
# Pugs default compiler flags
set
(
PUGS_CXX_FLAGS
"
${
PUGS_CXX_FLAGS
}
-Wall -Wextra -pedantic"
)
set
(
PUGS_CXX_FLAGS
"
${
PUGS_CXX_FLAGS
}
-Wall -Wextra -pedantic"
)
...
@@ -181,15 +181,7 @@ endif()
...
@@ -181,15 +181,7 @@ endif()
#------------------------------------------------------
#------------------------------------------------------
# C++ 17 flags
# C++ 17 flags
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.8.0"
)
message
(
WARNING
"Please consider to switch to CMake >= 3.8"
)
set
(
PUGS_CXX_FLAGS
"
${
PUGS_CXX_FLAGS
}
-std=gnu++1z"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
set
(
PUGS_CXX_FLAGS
"
${
PUGS_CXX_FLAGS
}
-Wno-c++17-extensions"
)
endif
()
else
()
set
(
CMAKE_CXX_STANDARD
"17"
)
set
(
CMAKE_CXX_STANDARD
"17"
)
endif
()
#------------------------------------------------------
#------------------------------------------------------
# Kokkos configuration
# Kokkos configuration
...
...
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