Skip to content

Fix CMake config if used as a subproject - #5581

Merged
mrry merged 1 commit into
tensorflow:masterfrom
NewProggie:fix_cmake_subprojects
Nov 14, 2016
Merged

mrry merged 1 commit into
tensorflow:masterfrom
NewProggie:fix_cmake_subprojects

Conversation

@NewProggie

Copy link
Copy Markdown
Contributor

With this fix we don't assume that the tensorflow project is the build
root. Instead CMAKE_CURRENT_SOURCE_DIR/CMAKE_CURRENT_BINARY_DIR is used
instead of just CMAKE_SOURCE_DIR/CMAKE_BINARY_DIR, which now builds
successfully, if it is built inside another, larger project.

With this fix we don't assume that the tensorflow project is the build
root. Instead CMAKE_CURRENT_SOURCE_DIR/CMAKE_CURRENT_BINARY_DIR is used
instead of just CMAKE_SOURCE_DIR/CMAKE_BINARY_DIR, which now builds
successfully, if it is built inside another, larger project.
@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@mention-bot

Copy link
Copy Markdown

@NewProggie, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ageron, @lilac and @mrry to be potential reviewers.

@mrry mrry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! LGTM.

@mrry

mrry commented Nov 13, 2016

Copy link
Copy Markdown
Contributor

@tensorflow-jenkins test this please.

@NewProggie

Copy link
Copy Markdown
Contributor Author

Seems that the one failing test has nothing to do with my PR?

@mrry

mrry commented Nov 14, 2016

Copy link
Copy Markdown
Contributor

Yes, the test failure looks unrelated. I'll merge the PR now.

@mrry
mrry merged commit ce6068b into tensorflow:master Nov 14, 2016
@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants