Skip to content

Commit 31a5db8

Browse files
authored
compilerDefinitions.cmake: define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES with libc++ (#7400)
1 parent 695c377 commit 31a5db8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/compilerDefinitions.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if(CPPCHK_GLIBCXX_DEBUG AND UNIX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
2222
add_definitions(-D_LIBCPP_ENABLE_ASSERTIONS=1)
2323
endif()
2424
# TODO: also add _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS?
25+
add_definitions(-D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES)
2526
endif()
2627
else()
2728
# TODO: check if this can be enabled again for Clang - also done in Makefile

0 commit comments

Comments
 (0)