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
5394a753
Commit
5394a753
authored
21 years ago
by
Bill Hoffman
Browse files
Options
Downloads
Patches
Plain Diff
BUG: fix not being able to find generated files in the binary tree
parent
6309da42
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
Source/cmMakefile.cxx
+8
-2
8 additions, 2 deletions
Source/cmMakefile.cxx
with
8 additions
and
2 deletions
Source/cmMakefile.cxx
+
8
−
2
View file @
5394a753
...
...
@@ -1726,7 +1726,7 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
// OK a source file object doesn't exist for the source
// maybe we made a bad call on assuming it was in the src tree
if
(
generated
&&
relative
)
if
(
relative
)
{
src
=
this
->
GetCurrentOutputDirectory
();
src
+=
"/"
;
...
...
@@ -1737,7 +1737,13 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
{
return
ret
;
}
// go back to looking in the source directory for it
if
(
relative
)
{
src
=
this
->
GetCurrentDirectory
();
src
+=
"/"
;
src
+=
sourceName
;
}
// we must create one
cmSourceFile
file
;
std
::
string
path
=
cmSystemTools
::
GetFilenamePath
(
src
);
...
...
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