Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
6c9ea388
Commit
6c9ea388
authored
8 years ago
by
Pospelov, Gennady
Browse files
Options
Downloads
Patches
Plain Diff
CheckCode scripts are excluded from Windows build
parent
11d57ea3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/bornagain/modules/CheckCode.cmake
+3
-0
3 additions, 0 deletions
cmake/bornagain/modules/CheckCode.cmake
cmake/bornagain/modules/PyExamplesLineLength.cmake
+4
-0
4 additions, 0 deletions
cmake/bornagain/modules/PyExamplesLineLength.cmake
with
7 additions
and
0 deletions
cmake/bornagain/modules/CheckCode.cmake
+
3
−
0
View file @
6c9ea388
set
(
SRC_LEN_LIM 100
)
# maximum line length of code written by MLZ-SCG
if
(
NOT MSVC
)
file
(
GLOB_RECURSE SRC1
"Core/*.cpp"
)
file
(
GLOB_RECURSE SRC2
"Core/*.h"
)
...
...
@@ -7,3 +9,4 @@ add_test(NAME "CodeLineLength"
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/dev-tools/analyze/count-line-length.py
${
SRC_LEN_LIM
}
${
SRC1
}
${
SRC2
}
)
endif
()
This diff is collapsed.
Click to expand it.
cmake/bornagain/modules/PyExamplesLineLength.cmake
+
4
−
0
View file @
6c9ea388
...
...
@@ -2,9 +2,13 @@ set(WEB_LEN_LIM 85) # maximum line length of code for display in Drupal web page
# Check whether the line length of all python examples remains below WEB_LEN_LIM
if
(
NOT MSVC
)
file
(
GLOB PY_EXAMPLES
"
${
PY_EXAMPLES_DIR
}
/*/ex*/*.py"
)
add_test
(
NAME
"PyExamplesLineLength"
COMMAND
${
PYTHON_EXECUTABLE
}
${
CMAKE_SOURCE_DIR
}
/dev-tools/analyze/count-line-length.py
${
WEB_LEN_LIM
}
${
PY_EXAMPLES
}
)
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