Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Show more breadcrumbs
André Pedro
CMake
Commits
f01045ea
Commit
f01045ea
authored
8 years ago
by
Gilles Khouzam
Committed by
Brad King
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Tests: Make Preprocess test work in RelWithDebInfo and MinSizeRel
parent
b8db2ed7
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
Tests/Preprocess/CMakeLists.txt
+10
-4
10 additions, 4 deletions
Tests/Preprocess/CMakeLists.txt
with
10 additions
and
4 deletions
Tests/Preprocess/CMakeLists.txt
+
10
−
4
View file @
f01045ea
...
...
@@ -214,18 +214,24 @@ set(FILE_PATH "${Preprocess_SOURCE_DIR}/file_def.h")
set
(
TARGET_PATH
"
${
Preprocess_SOURCE_DIR
}
/target_def.h"
)
# Set some definition properties.
foreach
(
c
""
"_DEBUG"
"_RELEASE"
)
foreach
(
c
""
"_DEBUG"
"_RELEASE"
"_RELWITHDEBINFO"
"_MINSIZEREL"
)
set
(
FLAVOR
"
${
c
}
"
)
# Treat RelWithDebInfo and MinSizeRel as Release to avoid having
# an exponentional matrix of inclusions and exclusions of defines
if
(
"
${
c
}
"
STREQUAL
"_RELWITHDEBINFO"
OR
"
${
c
}
"
STREQUAL
"_MINSIZEREL"
)
set
(
FLAVOR
"_RELEASE"
)
endif
()
set_property
(
DIRECTORY .
APPEND PROPERTY COMPILE_DEFINITIONS
${
c
}
"DIRECTORY_DEF
${
c
}
"
APPEND PROPERTY COMPILE_DEFINITIONS
${
c
}
"DIRECTORY_DEF
${
FLAVOR
}
"
)
set_property
(
TARGET Preprocess
PROPERTY COMPILE_DEFINITIONS
${
c
}
"TARGET_DEF
${
c
}
"
PROPERTY COMPILE_DEFINITIONS
${
c
}
"TARGET_DEF
${
FLAVOR
}
"
)
set_property
(
SOURCE preprocess.c preprocess.cxx
PROPERTY COMPILE_DEFINITIONS
${
c
}
"FILE_DEF
${
c
}
"
PROPERTY COMPILE_DEFINITIONS
${
c
}
"FILE_DEF
${
FLAVOR
}
"
)
endforeach
()
...
...
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