CMake adjusted to allow proper releasing.
Mac side is ready.
This commit is contained in:
@@ -9,6 +9,11 @@ include_directories(${PROJECT_BINARY_DIR})
|
||||
|
||||
add_executable("VersionUpdater" Main.cpp "${PROJECT_BINARY_DIR}/version.hpp")
|
||||
|
||||
if (WITH_FULL_RELEASE)
|
||||
sm_add_compile_definition("VersionUpdater" IS_FULL_RELEASE)
|
||||
message(STATUS "Full release mode engaged.")
|
||||
endif()
|
||||
|
||||
set_property(TARGET "VersionUpdater" PROPERTY FOLDER "Internal Libraries")
|
||||
|
||||
if(MSVC)
|
||||
|
||||
@@ -5,7 +5,11 @@ int smVersionMajor = @SM_VERSION_MAJOR@;
|
||||
int smVersionMinor = @SM_VERSION_MINOR@;
|
||||
int smVersionPatch = @SM_VERSION_PATCH@;
|
||||
char const * const smVersionGitHash = "@SM_VERSION_GIT_HASH@";
|
||||
#if defined(IS_FULL_RELEASE)
|
||||
char const * const smVersionFull = "@SM_VERSION_TRADITIONAL@";
|
||||
#else
|
||||
char const * const smVersionFull = "@SM_VERSION_FULL@";
|
||||
#endif
|
||||
char const * const smVersionTraditional = "@SM_VERSION_TRADITIONAL@";
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user