Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialise Tensorflow submodule to correct version in CMake builds #94

Merged
merged 1 commit into from
Jul 3, 2021

Conversation

phlash
Copy link
Collaborator

@phlash phlash commented Jul 2, 2021

As noted in #92, our CMake builds don't pull Tensorflow source like the Makefile does, this fixes it.

@phlash phlash requested a review from BenBE July 2, 2021 14:18
Copy link
Collaborator

@BenBE BenBE left a comment

Choose a reason for hiding this comment

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

LGTM.

endif()

# find Git and use it to get backscrub version
find_package(Git)
if(GIT_FOUND)
execute_process(
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMHO git describe --long --tags --always --dirty gives more descriptive results …

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You may be right, I'm not really fussed.. I tried both on current main and experimental branches:

% git checkout experimental
...
% git describe --long --always --dirty --all
heads/experimental-0-gaa243fc
% git describe --long --always --dirty --tags
v0.3.0-7-gaa243fc
% git checkout main
...
% git describe --long --always --dirty --all
heads/main-0-g7ec492c
% git describe --long --always --dirty --tags
7ec492c

I would note that this is not changed by this PR 😄

@phlash phlash merged commit 1ff939d into floe:experimental Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants