all repos — mgba @ 6a188289c209a3c905dc5209640904a91165c879

mGBA Game Boy Advance Emulator

CMake: Add ability to just print version string
Vicki Pfau vi@endrift.com
Sun, 22 Jan 2017 14:26:59 -0800
commit

6a188289c209a3c905dc5209640904a91165c879

parent

d8687d32c49e75c5f665df10a92d1b0a9e10687f

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -50,6 +50,7 @@ - VFS: Fix some minor VFile issues with FILEs

- Core: Add generic checksum function - Feature: Support ImageMagick 7 - All: Move time.h include to common.h + - CMake: Add ability to just print version string 0.5.2: (2016-12-31) Bugfixes:
M version.cmakeversion.cmake

@@ -43,7 +43,9 @@ if(NOT GIT_BRANCH)

set(GIT_BRANCH "(unknown)") endif() -if(NOT VERSION_STRING_CACHE OR NOT VERSION_STRING STREQUAL VERSION_STRING_CACHE) +if(DEFINED PRINT_STRING) + message("${${PRINT_STRING}}") +elseif(NOT VERSION_STRING_CACHE OR NOT VERSION_STRING STREQUAL VERSION_STRING_CACHE) set(VERSION_STRING_CACHE ${VERSION_STRING} CACHE STRING "" FORCE) if(CONFIG_FILE AND OUT_FILE)