Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MoReFEM
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
MoReFEM
CoreLibrary
MoReFEM
Commits
c10c2da1
Commit
c10c2da1
authored
6 years ago
by
GILLES Sebastien
Browse files
Options
Downloads
Patches
Plain Diff
#1342 CMake script: add a mechanism to point out missing keys in original pre-cache file.
parent
6d5a7b73
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Scripts/configure_cmake.py
+12
-1
12 additions, 1 deletion
cmake/Scripts/configure_cmake.py
with
12 additions
and
1 deletion
cmake/Scripts/configure_cmake.py
+
12
−
1
View file @
c10c2da1
...
...
@@ -129,6 +129,7 @@ If you need to change a value which is not provided in this script input, you ma
'
BOOST_INCL_DIR
'
,
'
BOOST_LIB_DIR
'
,
'
LUA_INCL_DIR
'
,
'
LUA_LIB_DIR
'
,
'
PARMETIS_INCL_DIR
'
,
'
PARMETIS_LIB_DIR
'
,
'
CMAKE_BUILD_TYPE
'
)
with
open
(
self
.
__command_line_args
.
cache_file
)
as
stream
:
...
...
@@ -172,7 +173,12 @@ If you need to change a value which is not provided in this script input, you ma
if
command_line_entry_value
:
value
=
command_line_entry_value
else
:
value
=
self
.
__pre_cache_dict
[
entry_name
]
try
:
value
=
self
.
__pre_cache_dict
[
entry_name
]
except
KeyError
:
raise
Exception
(
"
Entry name {} was not provided in PreCache file {}
"
.
format
(
entry_name
,
\
self
.
__command_line_args
.
cache_file
))
entry
=
'
set({0} {1} CACHE {2}
"
{3}
"
)
'
.
format
(
entry_name
,
value
,
cmake_type
,
cmake_comment
)
...
...
@@ -204,6 +210,11 @@ If you need to change a value which is not provided in this script input, you ma
"
BOOL
"
,
"
If true address sanitizer is enabled.
"
,
args
.
use_sanitizer
)
self
.
_cache_entry
(
"
CMAKE_BUILD_TYPE
"
,
\
"
STRING
"
,
"
Either
'
Debug
'
or
'
Release
'"
,
args
.
use_sanitizer
)
self
.
_cache_entry
(
"
CMAKE_CXX_STANDARD
"
,
"
STRING
"
,
...
...
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