Propagate to parent scope changes made to CMAKE_CXX_FLAGS.
authorOscar Fuentes <ofv@wanadoo.es>
Sun, 2 Jan 2011 12:30:18 +0000 (12:30 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sun, 2 Jan 2011 12:30:18 +0000 (12:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122692 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMProcessSources.cmake

index d9c14fbe837a0314f979657af382820923f7b270..092c2f795d37396a874afd3c94c041424c98a4c8 100644 (file)
@@ -54,6 +54,7 @@ function(llvm_process_sources OUT_VAR)
     endif()
   endif()
 
+  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" PARENT_SCOPE )
   set( ${OUT_VAR} ${sources} PARENT_SCOPE )
 endfunction(llvm_process_sources)