From f98c5760fe86360c399d952e3710944a945f10e0 Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sat, 11 Oct 2014 15:13:00 -0700 Subject: [PATCH] Fix #54 by correcting reference to CXX flags for variants. --- cmake/AddCXXCompilerFlag.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()