mirror of
https://github.com/google/benchmark.git
synced 2024-11-29 00:34:42 +00:00
Merge pull request #57 from google/flag_variants
Fix #54 by correcting reference to CXX flags for variants.
This commit is contained in:
commit
5f31f0dca2
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue