You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stlink tools version and/or git commit hash: latest/git-9d08810
Cloning the repository, pushing it to somewhere else, and cloning it from that second place breaks the build process.
Error from make:
CMake Error at CMakeLists.txt:91 (set_target_properties):
set_target_properties called with incorrect number of arguments.
It seems to fail because some of the variables in
set_target_properties(${STLINK_LIB_SHARED}
PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION ${STLINK_SHARED_VERSION}
)
end up being empty, because cmake/Version.cmake tries to get the values with git describe which fails because it doesn't find any names, presumably because the tags aren't pushed by default.
Doing a git push --tags from a repo cloned directly from the official repository to the other repository, followed by git pull --tags in the non-working copy fixes this.
I suggest that in addition to checking that git exists and the project is under git, cmake/Version.cmake should also check that the repository actually contains any tags before taking the git-aware branch of the conditional.
The text was updated successfully, but these errors were encountered:
Yeah, it uses git if it finds it and the project has a .git directory, but doesn't fall back to the .version file if the git method fails for some reason, be it due to lack of tags or something else.
Nightwalker-87
changed the title
Cloning the repo, pushing it elsewere and cloning again breaks the build process
[install] Cloning the repo, pushing it elsewere and cloning again breaks the build process
Apr 6, 2020
Nightwalker-87
changed the title
[install] Cloning the repo, pushing it elsewere and cloning again breaks the build process
Cloning the repo, pushing it elsewere and cloning again breaks the build process
Apr 7, 2020
Cloning the repository, pushing it to somewhere else, and cloning it from that second place breaks the build process.
Error from make:
It seems to fail because some of the variables in
end up being empty, because
cmake/Version.cmake
tries to get the values withgit describe
which fails because it doesn't find any names, presumably because the tags aren't pushed by default.Doing a
git push --tags
from a repo cloned directly from the official repository to the other repository, followed bygit pull --tags
in the non-working copy fixes this.I suggest that in addition to checking that git exists and the project is under git,
cmake/Version.cmake
should also check that the repository actually contains any tags before taking the git-aware branch of the conditional.The text was updated successfully, but these errors were encountered: