Fail on empty LAUNCHER_HMAC_SECRET

Priot to this change there was code that attempted to verify that
LAUNCHER_HMAC_SECRET was set to something. This code was broke though
and didn't catch the case correctly. This change fixes the check.
This commit is contained in:
Matt Hardcastle 2019-06-20 15:36:28 -07:00
parent 8ee482f7ab
commit 73616b81f3

View file

@ -67,7 +67,7 @@ add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${src_files})
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${APP_NAME}
MACOSX_BUNDLE_BUNDLE_NAME ${APP_NAME})
set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "")
if (LAUNCHER_HMAC_SECRET STREQUAL "")
if ("${LAUNCHER_HMAC_SECRET}" STREQUAL "")
message(FATAL_ERROR "LAUNCHER_HMAC_SECRET is not set")
endif()