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
79a91538
Commit
79a91538
authored
7 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
RC: Add missing CMAKE_RC_FLAGS_<CONFIG> entries to cache
parent
c77194ec
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
Modules/CMakeRCInformation.cmake
+16
-1
16 additions, 1 deletion
Modules/CMakeRCInformation.cmake
with
16 additions
and
1 deletion
Modules/CMakeRCInformation.cmake
+
16
−
1
View file @
79a91538
...
...
@@ -17,11 +17,26 @@ set(CMAKE_SYSTEM_AND_RC_COMPILER_INFO_FILE
${
CMAKE_ROOT
}
/Modules/Platform/
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_BASE_NAME
}
.cmake
)
include
(
Platform/
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_BASE_NAME
}
OPTIONAL
)
string
(
STRIP
"$ENV{RCFLAGS}
${
CMAKE_RC_FLAGS_INIT
}
"
CMAKE_RC_FLAGS_INIT
)
set
(
CMAKE_RC_FLAGS_INIT
"$ENV{RCFLAGS}
${
CMAKE_RC_FLAGS_INIT
}
"
)
foreach
(
c
""
_DEBUG _RELEASE _MINSIZEREL _RELWITHDEBINFO
)
string
(
STRIP
"
${
CMAKE_RC_FLAGS
${
c
}
_INIT
}
"
CMAKE_RC_FLAGS
${
c
}
_INIT
)
endforeach
()
set
(
CMAKE_RC_FLAGS
"
${
CMAKE_RC_FLAGS_INIT
}
"
CACHE STRING
"Flags for Windows Resource Compiler."
)
if
(
NOT CMAKE_NOT_USING_CONFIG_FLAGS
)
set
(
CMAKE_RC_FLAGS_DEBUG
"
${
CMAKE_RC_FLAGS_DEBUG_INIT
}
"
CACHE STRING
"Flags for Windows Resource Compiler during debug builds."
)
set
(
CMAKE_RC_FLAGS_MINSIZEREL
"
${
CMAKE_RC_FLAGS_MINSIZEREL_INIT
}
"
CACHE STRING
"Flags for Windows Resource Compiler during release builds for minimum size."
)
set
(
CMAKE_RC_FLAGS_RELEASE
"
${
CMAKE_RC_FLAGS_RELEASE_INIT
}
"
CACHE STRING
"Flags for Windows Resource Compiler during release builds."
)
set
(
CMAKE_RC_FLAGS_RELWITHDEBINFO
"
${
CMAKE_RC_FLAGS_RELWITHDEBINFO_INIT
}
"
CACHE STRING
"Flags for Windows Resource Compiler during release builds with debug info."
)
endif
()
# These are the only types of flags that should be passed to the rc
# command, if COMPILE_FLAGS is used on a target this will be used
# to filter out any other flags
...
...
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