diff options
author | Roger Leigh <rleigh@debian.org> | 2013-10-01 22:00:30 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2013-10-01 22:00:30 +0100 |
commit | b79369058da4b641befacdcf2a8271dca5cbe305 (patch) | |
tree | de77f43d8b09a0bcc68ef6024a07b0ef4ed06a9b | |
parent | b9ca645482fda7f7ae99dfdded1bc4b3eb5b6acf (diff) | |
download | schroot-b79369058da4b641befacdcf2a8271dca5cbe305.tar.gz |
cmake: Source release policy from source dir
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmake/GitRelease.cmake | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b9e276e..e2e7c80d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ set(GIT_VERSION_FILE_COMPAT "VERSION" CACHE FILEPATH "Location of compatibility version metadata") set(GIT_VERSION_FILE_USE_COMPAT ON CACHE BOOL "Use compatibility version file") -set(GIT_RELEASE_POLICY_FILE "cmake/GitReleasePolicy.cmake" +set(GIT_RELEASE_POLICY_FILE "${PROJECT_SOURCE_DIR}/cmake/GitReleasePolicy.cmake" CACHE FILEPATH "Location of release policy configuration") include("${PROJECT_SOURCE_DIR}/cmake/GitRelease.cmake") diff --git a/cmake/GitRelease.cmake b/cmake/GitRelease.cmake index 6f4e264f..b0c46d25 100644 --- a/cmake/GitRelease.cmake +++ b/cmake/GitRelease.cmake @@ -588,9 +588,9 @@ set(GIT_DIST_ROOT ${GIT_DIST_TMPDIR}/${GIT_DIST_NAME} mark_as_advanced(FORCE GIT_DIST_BRANCH GIT_DIST_COMMIT_MESSAGE GIT_DIST_NAME GIT_DIST_TMPDIR GIT_DIST_ROOT) endif (NOT CMAKE_SCRIPT_MODE_FILE) -if(EXISTS ${GIT_RELEASE_POLICY_FILE}) +if(EXISTS "${GIT_RELEASE_POLICY_FILE}") include("${GIT_RELEASE_POLICY_FILE}") -endif(EXISTS ${GIT_RELEASE_POLICY_FILE}) +endif(EXISTS "${GIT_RELEASE_POLICY_FILE}") function(git_check_repo) if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git) |