From: Adeel Kazmi Date: Mon, 15 Apr 2019 09:15:06 +0000 (+0100) Subject: (Build) Ensure Env options are expanded correctly X-Git-Tag: dali_1.4.16~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88fdfd143dd75f1549c41f8ef1be4ce68583ec25;p=platform%2Fcore%2Fuifw%2Fdali-core.git (Build) Ensure Env options are expanded correctly If CXXFLAGS was not set then it expanded to nothing causing an error. The solution was to surround it by quotes so that it is evaluated correctly within the if statement. Change-Id: I410a0fe13882f13b4ad84e4f68db4a46dcb93037 --- diff --git a/build/tizen-cmake/CMakeLists.txt b/build/tizen-cmake/CMakeLists.txt index c25032dae..988cf6114 100644 --- a/build/tizen-cmake/CMakeLists.txt +++ b/build/tizen-cmake/CMakeLists.txt @@ -86,7 +86,7 @@ ADD_COMPILE_OPTIONS( -std=c++11 -gdwarf-4 ) ADD_COMPILE_OPTIONS( -Wnon-virtual-dtor -Woverloaded-virtual -Wold-style-cast ) ADD_COMPILE_OPTIONS( -Werror -Wall -Wextra -Wno-unused-parameter -Wfloat-equal ) -IF( ENABLE_COVERAGE OR $ENV{CXXFLAGS} MATCHES --coverage ) +IF( ENABLE_COVERAGE OR "$ENV{CXXFLAGS}" MATCHES --coverage ) ADD_COMPILE_OPTIONS( --coverage ) SET(ENABLE_COVERAGE ON) SET(COVERAGE --coverage)