Skip to content

Commit

Permalink
Check empty TRAVIS_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
xor-gate committed Jun 18, 2016
1 parent 09723c6 commit c54fe99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/modules")

# Determine package version.
find_package (Git QUIET)
if (DEFINED ENV{TRAVIS_TAG})
if (DEFINED ENV{TRAVIS_TAG} AND NOT "$ENV{TRAVIS_TAG}" STREQUAL "")
set (STLINK_PACKAGE_VERSION "$ENV{TRAVIS_TAG}")
elseif (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
message("Found git, using git tags for version")
# Working off a git repo, using git versioning

# Check if HEAD is pointing to a tag
Expand Down

0 comments on commit c54fe99

Please sign in to comment.