Skip to content

Commit 4c5ec95

Browse files
committed
no-scan
1 parent 919f90d commit 4c5ec95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/sdist/amici/exporters/sundials/templates/CMakeLists.template.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
cmake_minimum_required(VERSION 3.22)
33
cmake_policy(VERSION 3.22...3.31)
44

5+
# We aren't using C++20 modules, so disable scanning for them to avoid
6+
# clang-scan-deps-notfound errors.
7+
# See also https://discourse.cmake.org/t/cmake-3-28-cmake-cxx-compiler-clang-scan-deps-notfound-not-found/9244/3
8+
set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
9+
510
project(TPL_MODELNAME)
611

712
message(STATUS "CMAKE_CURRENT_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR}")

0 commit comments

Comments
 (0)