From 0a6fecd30bc0bdb4d98b690aa004534aabc11a7e Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco Claraco Date: Sun, 16 Jun 2019 02:30:28 +0200 Subject: [PATCH] fix cmake warning --- cmake/GtsamBuildTypes.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GtsamBuildTypes.cmake b/cmake/GtsamBuildTypes.cmake index bc0d6e233..56dd7dc08 100644 --- a/cmake/GtsamBuildTypes.cmake +++ b/cmake/GtsamBuildTypes.cmake @@ -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()