diff --git a/cmake/AddCXXCompilerFlag.cmake b/cmake/AddCXXCompilerFlag.cmake index e52c1848..7c0f5a31 100644 --- a/cmake/AddCXXCompilerFlag.cmake +++ b/cmake/AddCXXCompilerFlag.cmake @@ -32,7 +32,7 @@ function(add_cxx_compiler_flag FLAG) if(${SANITIZED_FLAG}) string(REGEX REPLACE "[^A-Za-z_0-9]" "_" VARIANT "${VARIANT}") string(TOUPPER "${VARIANT}" VARIANT) - set(CMAKE_CXX_FLAGS${VARIANT} "${CMAKE_CXX_FLAGS}${VARIANT} ${FLAG}" PARENT_SCOPE) + set(CMAKE_CXX_FLAGS${VARIANT} "${CMAKE_CXX_FLAGS${VARIANT}} ${FLAG}" PARENT_SCOPE) endif() endfunction()