Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,13 @@ if(MSVC)
endif()

if(runtime_cxxmodules)
if(NOT ROOT_CONFIGURED_FROM_CACHE)
# When using cmake --fresh (or changing the toolchain), remove possibly stale pcms that are not tracked by CMake
set(ROOT_CONFIGURED_FROM_CACHE True CACHE BOOL "Shows if ROOT is configured from an existing CMake cache")
mark_as_advanced(ROOT_CONFIGURED_FROM_CACHE)
file(GLOB left_over_pcms ${CMAKE_BINARY_DIR}/lib/*.pcm)
file(REMOVE ${left_over_pcms})
endif()
# Dummy target that does nothing, we don't need a PCH for modules.
# Onepcm target has all dependencies needed for allDict.cxx.pch, which allow
# to test hsimple.C after all C++ modules are updated.
Expand Down
Loading