Commit 246dd831 authored by Paul Schütze's avatar Paul Schütze
Browse files

Merge branch 'b-submodule' into 'v3.1-stable'

[v3.1-stable] Allow Building From a Submodule

See merge request allpix-squared/allpix-squared!1138
parents 07f9c3ab 61cea701
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@
# Retrieve the allpix version string from git describe
FUNCTION(get_version project_version)
    # Check if this is a source tarball build
    IF(NOT IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.git)
    IF(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git)
        SET(source_package 1)
    ENDIF(NOT IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.git)
    ENDIF(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git)

    # Set package version
    IF(NOT source_package)