Message ID | 20180112180824.GE15974@ziepe.ca (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/buildlib/RDMA_BuildType.cmake b/buildlib/RDMA_BuildType.cmake index 0951edadeebf61..ea2bbf8e639c2f 100644 --- a/buildlib/RDMA_BuildType.cmake +++ b/buildlib/RDMA_BuildType.cmake @@ -29,7 +29,7 @@ function(RDMA_BuildType) # with the -DNDEBUG removed foreach (language CXX C) set(VAR_TO_MODIFY "CMAKE_${language}_FLAGS_RELWITHDEBINFO") - if (${${VAR_TO_MODIFY}} STREQUAL ${${VAR_TO_MODIFY}_INIT}) + if ("${${VAR_TO_MODIFY}}" STREQUAL ${${VAR_TO_MODIFY}_INIT}) string(REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " " replacement