summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2008-03-02 19:34:19 +0000
committerWerner Schweer <ws.seh.de>2008-03-02 19:34:19 +0000
commite48f60752e35ca4c08e1ef13c2deaea35e3401d8 (patch)
tree2f56156441ede1c86caf2ad32e25667f20bf1e68
parent0ff6e32702a4009450828aa6a79e06cb7e4c8fe3 (diff)
change build of revision.h
-rwxr-xr-xMakefile4
-rw-r--r--muse/muse/CMakeLists.txt12
-rw-r--r--muse/muse/revision.h1
3 files changed, 5 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index c80965f9..f2dd8db0 100755
--- a/Makefile
+++ b/Makefile
@@ -85,3 +85,7 @@ package:
man:
cd build; make man
+revision:
+ svn info -r HEAD | grep Revision | cut -f 2 -d ' ' > muse/muse/revision.h
+
+
diff --git a/muse/muse/CMakeLists.txt b/muse/muse/CMakeLists.txt
index 64479c1a..c8496acd 100644
--- a/muse/muse/CMakeLists.txt
+++ b/muse/muse/CMakeLists.txt
@@ -20,17 +20,6 @@
include(${PROJECT_SOURCE_DIR}/pch.txt)
-add_custom_command(
- OUTPUT ${CMAKE_BINARY_DIR}/revision.h
- COMMAND svn info ${PROJECT_SOURCE_DIR} | grep Revision | cut -f 2 -d \" \" > ${CMAKE_BINARY_DIR}/revision.h
- WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
- )
-
-set_source_files_properties(
- ${PROJECT_BINARY_DIR}/revision.h
- PROPERTIES generated true
- )
-
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
@@ -171,7 +160,6 @@ add_executable ( muse
audiogroup.cpp
exportmidi.cpp
revision.cpp
- ${PROJECT_BINARY_DIR}/revision.h
)
set_target_properties( muse
diff --git a/muse/muse/revision.h b/muse/muse/revision.h
new file mode 100644
index 00000000..51b40081
--- /dev/null
+++ b/muse/muse/revision.h
@@ -0,0 +1 @@
+345