summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-12-14 19:01:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-12-14 19:01:07 +0100
commit857fb35dcb1ac30ad3be409f054429b346be1627 (patch)
treee9474bc625de8d52b47f430e1c50483635d6b315 /CMakeLists.txt
parent70ad2795eac61a9119acd8b33863ba0534887fa2 (diff)
downloadweechat-857fb35dcb1ac30ad3be409f054429b346be1627.zip
core: fix cmake target "dist": build tarballs using git-archive and not cvs
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 2 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19b3bcdfb..50672896c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,11 +107,6 @@ ADD_SUBDIRECTORY( doc )
CONFIGURE_FILE(config.h.cmake config.h @ONLY)
CONFIGURE_FILE(
- "${CMAKE_CURRENT_SOURCE_DIR}/cmake/makedist.sh.in"
- "${CMAKE_CURRENT_BINARY_DIR}/makedist.sh" IMMEDIATE
- @ONLY)
-
-CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
@@ -120,9 +115,8 @@ ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
ADD_CUSTOM_TARGET(dist
- "${CMAKE_BINARY_DIR}/makedist.sh"
- DEPENDS doc
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+ "${CMAKE_CURRENT_SOURCE_DIR}/makedist.sh" "${VERSION}" "HEAD"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# pkgconfig file
SET(PACKAGE "${PROJECT_NAME}")