From ed19c94dd59d335fec00ab018d578b34d1561b0e Mon Sep 17 00:00:00 2001 From: Vassil Vassilev <v.g.vassilev@gmail.com> Date: Sun, 6 May 2018 12:52:25 -0700 Subject: [PATCH] [cxxmodules][cmake] Switch off the pch option when building with runtime_cxxmodules=On. --- cmake/modules/RootBuildOptions.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/modules/RootBuildOptions.cmake b/cmake/modules/RootBuildOptions.cmake index 0d94802781b..5c6b1d9f544 100644 --- a/cmake/modules/RootBuildOptions.cmake +++ b/cmake/modules/RootBuildOptions.cmake @@ -188,6 +188,10 @@ option(roottest "Include roottest, if roottest exists in root or if it is a sibl option(rootbench "Include rootbench, if rootbench exists in root or if it is a sibling directory." OFF) option(clingtest "Include cling tests. NOTE that this makes llvm/clang symbols visible in libCling." OFF) +if (runtime_cxxmodules) + set(pch_defvalue OFF) +endif(runtime_cxxmodules) + #--- Compression algorithms in ROOT------------------------------------------------------------- if(NOT compression_default MATCHES "zlib|lz4|lzma") message(STATUS "Not supported compression algorithm, ROOT compression algorithms are zlib, lzma and lz4. -- GitLab