Merge pull request #57 from google/flag_variants

Fix #54 by correcting reference to CXX flags for variants.
This commit is contained in:
Chris Kennelly 2014-10-18 15:33:07 -07:00
commit 5f31f0dca2

View file

@ -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()