@@ -128,29 +128,14 @@ endif()
128
128
129
129
set (gv "${CMAKE_SOURCE_DIR} /src/gen_version.h" )
130
130
131
- # get git version hash
132
- if (EXISTS "${CMAKE_SOURCE_DIR} /.git" )
133
- add_custom_command (OUTPUT "${gv} "
134
- COMMAND echo "#ifndef GEN_VERSION_H" > "${gv} "
135
- COMMAND echo "#define GEN_VERSION_H" >> "${gv} "
136
- COMMAND git log -n1 "--format=#define APP_VERSION \" %h_git\" " >> "${gv} "
137
- COMMAND echo "#define MAJOR_VERSION 999" >> "${gv} "
138
- COMMAND echo "#define MINOR_VERSION 0" >> "${gv} "
139
- COMMAND echo "#define PATCH_VERSION 0" >> "${gv} "
140
- COMMAND echo "#endif" >> "${gv} "
141
- DEPENDS .git/HEAD
142
- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} "
143
- VERBATIM )
144
- else ()
145
- file (WRITE "${gv} "
146
- "#ifndef GEN_VERSION_H\n "
147
- "#define GEN_VERSION_H\n "
148
- "#define APP_VERSION \" 999.0.0\"\n "
149
- "#define MAJOR_VERSION 999\n "
150
- "#define MINOR_VERSION 0\n "
151
- "#define PATCH_VERSION 0\n "
152
- "#endif\n " )
153
- endif ()
131
+ file (WRITE "${gv} "
132
+ "#ifndef GEN_VERSION_H\n "
133
+ "#define GEN_VERSION_H\n "
134
+ "#define APP_VERSION \" 3.3.0\"\n "
135
+ "#define MAJOR_VERSION 3\n "
136
+ "#define MINOR_VERSION 3\n "
137
+ "#define PATCH_VERSION 0\n "
138
+ "#endif\n " )
154
139
155
140
#icon and correct libs/subsystem for windows
156
141
if (WIN32 )
@@ -224,7 +209,7 @@ set(CPACK_PACKAGE_VENDOR "oldsch00l")
224
209
set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR} /README.md" )
225
210
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR} /LICENSE" )
226
211
set (CPACK_PACKAGE_VERSION_MAJOR "3" )
227
- set (CPACK_PACKAGE_VERSION_MINOR "0 " )
212
+ set (CPACK_PACKAGE_VERSION_MINOR "3 " )
228
213
set (CPACK_PACKAGE_VERSION_PATCH "0" )
229
214
set (CPACK_PACKAGE_INSTALL_DIRECTORY "SqliteBrowser${CPACK_PACKAGE_VERSION_MAJOR} " )
230
215
if (WIN32 AND NOT UNIX )
0 commit comments