fix cmake warning

release/4.3a0
Jose Luis Blanco Claraco 2019-06-16 02:30:28 +02:00
parent 7f43054c37
commit 0a6fecd30b
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function(append_config_if_not_empty TARGET_VARIABLE_ build_type)
set(flags_variable_name "${TARGET_VARIABLE_}_${build_type_toupper}")
set(flags_ ${${flags_variable_name}})
if (NOT "${flags_}" STREQUAL "")
if ("${build_type_toupper}" STREQUAL "COMMON")
if (${build_type_toupper} STREQUAL "COMMON")
# Special "COMMON" configuration type, just append without CMake expression:
list_append_cache(${TARGET_VARIABLE_} "${flags_}")
else()