Skip to content

Commit bbf1402

Browse files
authored
Don't set CMAKE_CXX_FLAGS PARENT_SCOPE in macro use_rtti (#444)
cmake macro doesn't create new scope, so it is wrong to set PARENT_SCOPE for CMAKE_CXX_FLAGS. In addition, in out-of-tree build, the parent scope doesn't exist and there is cmake warning.
1 parent e047ae6 commit bbf1402

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmake/modules/CMakeFunctions.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ macro(use_rtti val)
1515
llvm_replace_compiler_option(CMAKE_CXX_FLAGS "-frtti" "-fno-rtti" )
1616
endif()
1717
endif()
18-
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" PARENT_SCOPE )
1918
endmacro(use_rtti)
2019

2120
#

0 commit comments

Comments
 (0)