summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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