diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:53:41 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:53:41 -0500 |
commit | c7dea40f8a407e726cf336757c9728880e4d9aa8 (patch) | |
tree | 0028d9404586e77511bbe8f4916a863af8a4fcb5 | |
parent | fb3200360b153666e1bfe0ef14e67926358f12cc (diff) |
Simplify version number support
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | instr-client.c | 2 | ||||
-rw-r--r-- | version.h.in | 1 |
3 files changed, 1 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 95d9ddc..fa99325 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,8 @@ cmake_minimum_required(VERSION 2.8) project(Instrument) -set(FW_VERSION 5.00) - -# configure a header file to pass some of the CMake settings -# to the source code -configure_file ( - "${PROJECT_SOURCE_DIR}/version.h.in" - "${PROJECT_BINARY_DIR}/version.h" -) # add the binary tree to the search path for include files -# so that we will find TutorialConfig.h include_directories("${PROJECT_BINARY_DIR}") set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) diff --git a/instr-client.c b/instr-client.c index c020e65..ed5c64f 100644 --- a/instr-client.c +++ b/instr-client.c @@ -118,7 +118,7 @@ int main(int argc, char** argv) return -1; } - g_printf("Welcome to InstrumentShell v%.2f\n\n",FW_VERSION); + g_printf("Welcome to InstrumentShell v%s\n\n",FW_VERSION); g_print("> "); diff --git a/version.h.in b/version.h.in deleted file mode 100644 index aa272d0..0000000 --- a/version.h.in +++ /dev/null @@ -1 +0,0 @@ -#define FW_VERSION @FW_VERSION@ |