Move 0x to cmake file.

This commit is contained in:
chriseth 2017-06-14 14:17:53 +02:00
parent 1d79059897
commit 1ce949519d
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,8 @@ include(EthUtils)
# Converting to char array is required due to MSVC's string size limit.
file(READ ${CMAKE_SOURCE_DIR}/LICENSE.txt LICENSE_TEXT HEX)
string(REGEX MATCHALL ".." LICENSE_TEXT "${LICENSE_TEXT}")
string(REGEX REPLACE ";" ",\t0x" LICENSE_TEXT "${LICENSE_TEXT}")
string(REGEX REPLACE ";" ",\n\t0x" LICENSE_TEXT "${LICENSE_TEXT}")
set(LICENSE_TEXT "0x${LICENSE_TEXT}")
configure_file("${CMAKE_SOURCE_DIR}/cmake/templates/license.h.in" "license.h")

View File

@ -1,5 +1,5 @@
#pragma once
static char licenseText[] = {
0x@LICENSE_TEXT@
static char const licenseText[] = {
@LICENSE_TEXT@
};