Fix #8 by defining the version properly and adding a proper line end
This commit is contained in:
parent
98deae237b
commit
4f595ff92e
2 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@ cmake_minimum_required( VERSION 2.8.7 )
|
|||
set( TTRTS_VERSION_MAJOR 0 )
|
||||
set( TTRTS_VERSION_MINOR 0 )
|
||||
set( TTRTS_VERSION_PATCH 1 )
|
||||
set( TTRTS_VERSION_STRING "${TTRTS_VERSION_MAJOR}.${TTRTS_VERSION_MINOR}.${TTRTS_VERSION_PATCH}")
|
||||
|
||||
# Use c++1y (14)
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++1y" )
|
||||
|
@ -25,7 +24,7 @@ add_definitions(
|
|||
-DTTRTS_VERSION_MAJOR=${TTRTS_VERSION_MAJOR}
|
||||
-DTTRTS_VERSION_MINOR=${TTRTS_VERSION_MINOR}
|
||||
-DTTRTS_VERSION_PATCH=${TTRTS_VERSION_PATCH}
|
||||
-DTTRTS_VERSION_STRING=\"${DTTRTS_VERSION_STRING}\"
|
||||
-DTTRTS_VERSION_STRING=\"${TTRTS_VERSION_MAJOR}.${TTRTS_VERSION_MINOR}.${TTRTS_VERSION_PATCH}\"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ bool OutputGameStateFile(CTTRTSGame &game, std::string &gameDir)
|
|||
// Append the version number
|
||||
turnDescriptor = std::string("==== ttrts v")
|
||||
+ sk_ttrts_version_string
|
||||
+ std::string(" ====")
|
||||
+ std::string(" ====\n")
|
||||
+ turnDescriptor;
|
||||
|
||||
turnFile<<turnDescriptor;
|
||||
|
|
Loading…
Add table
Reference in a new issue