diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c2e1187e..b3dadb002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ function(GET_PG_CONFIG var) # It will then also show as, e.g., "PG_LDFLAGS-NOTFOUND" in any # string interpolation, making it obvious that it is an undefined # CMake variable. - if(${_temp} STREQUAL "not recorded") + if("${_temp}" STREQUAL "not recorded") set(_temp ${var}-NOTFOUND) endif()