diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-11 23:58:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-11 23:58:35 +0100 |
commit | c0b3019d1b298ed682fa50e75740ec287ffb604d (patch) | |
tree | c75d29e3f28292987a7b4bf9cbbdbc4944bc8a5a | |
parent | b2f8132cbc7ff77ee1b5abd12708e5923b148b8b (diff) |
reduce libc++ adding unneeded includes in stl headers
this is mostly for correctness reasons, not build speed.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e25051c..53373c1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,6 +139,10 @@ add_definitions( -DIMGUI_DISABLE_OBSOLETE_KEYIO ) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$") + add_definitions(-D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) +endif() + fm_run_hook(fm-userconfig-src) include_directories(.) |