Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Simon Wilson
KWSys
Commits
7a4cca11
Commit
7a4cca11
authored
7 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
Process: Refactor test compile flag addition
parent
fc4d55ba
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+4
-2
4 additions, 2 deletions
CMakeLists.txt
with
4 additions
and
2 deletions
CMakeLists.txt
+
4
−
2
View file @
7a4cca11
...
...
@@ -1147,17 +1147,19 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
SET_TESTS_PROPERTIES
(
kwsys.testProcess-
${
n
}
PROPERTIES TIMEOUT 120
)
ENDFOREACH
()
SET
(
testProcess_COMPILE_FLAGS
""
)
# Some Apple compilers produce bad optimizations in this source.
IF
(
APPLE AND CMAKE_C_COMPILER_ID MATCHES
"^(GNU|LLVM)$"
)
S
ET_SOURCE_FILES_PROPERTIES
(
testProcess.c PROPERTIES
COMPILE_FLAGS -O0
)
S
TRING
(
APPEND testProcess_
COMPILE_FLAGS
"
-O0
"
)
ELSEIF
(
CMAKE_C_COMPILER_ID STREQUAL
"XL"
AND
NOT
(
CMAKE_SYSTEM MATCHES
"Linux.*ppc64le"
AND
NOT CMAKE_C_COMPILER_VERSION VERSION_LESS
"13.1.1"
))
# Tell IBM XL not to warn about our test infinite loop
# v13.1.1 and newer on Linux ppc64le is clang based and does not accept
# the -qsuppress option
S
ET_PROPERTY
(
SOURCE testProcess.c PROPERTY
COMPILE_FLAGS -qsuppress=1500-010
)
S
TRING
(
APPEND testProcess_
COMPILE_FLAGS
"
-qsuppress=1500-010
"
)
ENDIF
()
SET_PROPERTY
(
SOURCE testProcess.c PROPERTY COMPILE_FLAGS
"
${
testProcess_COMPILE_FLAGS
}
"
)
# Test SharedForward
CONFIGURE_FILE
(
${
PROJECT_SOURCE_DIR
}
/testSharedForward.c.in
...
...
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