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
a975b21c
Commit
a975b21c
authored
8 years ago
by
Brad King
Browse files
Options
Downloads
Plain Diff
Merge branch 'ninja-framework-POST_BUILD' into release
parents
2d6fba67
20278872
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/cmNinjaNormalTargetGenerator.cxx
+4
-2
4 additions, 2 deletions
Source/cmNinjaNormalTargetGenerator.cxx
Tests/Framework/CMakeLists.txt
+5
-0
5 additions, 0 deletions
Tests/Framework/CMakeLists.txt
with
9 additions
and
2 deletions
Source/cmNinjaNormalTargetGenerator.cxx
+
4
−
2
View file @
a975b21c
...
...
@@ -645,7 +645,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
std
::
string
postBuildCmdLine
=
localGen
.
BuildCommandLine
(
postBuildCmdLines
);
cmNinjaVars
symlinkVars
;
if
(
targetOutput
==
targetOutputReal
)
{
bool
const
symlinkNeeded
=
(
targetOutput
!=
targetOutputReal
&&
!
gt
.
IsFrameworkOnApple
());
if
(
!
symlinkNeeded
)
{
vars
[
"POST_BUILD"
]
=
postBuildCmdLine
;
}
else
{
vars
[
"POST_BUILD"
]
=
":"
;
...
...
@@ -687,7 +689,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
commandLineLengthLimit
,
&
usedResponseFile
);
this
->
WriteLinkRule
(
usedResponseFile
);
if
(
targetOutput
!=
targetOutputReal
&&
!
gt
.
IsFrameworkOnApple
()
)
{
if
(
symlinkNeeded
)
{
if
(
targetType
==
cmState
::
EXECUTABLE
)
{
globalGen
.
WriteBuild
(
this
->
GetBuildFileStream
(),
...
...
This diff is collapsed.
Click to expand it.
Tests/Framework/CMakeLists.txt
+
5
−
0
View file @
a975b21c
...
...
@@ -51,6 +51,11 @@ install(TARGETS foo bar
# duplicate install rules for the pieces of the framework.
)
# test that framework post-build commands run
add_custom_command
(
TARGET foo POST_BUILD COMMAND
${
CMAKE_COMMAND
}
-E touch foo-post-build
)
add_custom_target
(
fooCustom ALL COMMAND
${
CMAKE_COMMAND
}
-E copy foo-post-build foo-custom
)
add_dependencies
(
fooCustom foo
)
# Make a static library and apply the framework properties to it to verify
# that everything still builds correctly, but it will not actually produce
# a framework... The framework properties only apply when the library type
...
...
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