cmake: set SK_RELEASE to 0 if not a Release build

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1564853002
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac10.9-Clang-x86_64-Release-CMake-Trybot

Review URL: https://codereview.chromium.org/1564853002
This commit is contained in:
mtklein 2016-01-07 06:56:11 -08:00 committed by Commit bot
parent ce2dfae8c5
commit 95bc09b666

View File

@ -264,6 +264,8 @@ install(TARGETS skia DESTINATION lib)
# SkUserConfig.h
if (CMAKE_BUILD_TYPE STREQUAL Release)
set (SK_RELEASE 1)
else()
set (SK_RELEASE 0)
endif()
configure_file ("SkUserConfig.h.in" "${userconfig_directory}/SkUserConfig.h")