Skip to content

Commit

Permalink
Merge pull request #57 from google/flag_variants
Browse files Browse the repository at this point in the history
Fix #54 by correcting reference to CXX flags for variants.
  • Loading branch information
ckennelly committed Oct 18, 2014
2 parents 06201b3 + f98c576 commit 5f31f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/AddCXXCompilerFlag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 5f31f0d

Please sign in to comment.