We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c150c1 commit 8e2d142Copy full SHA for 8e2d142
1 file changed
CMakeLists.txt
@@ -1,15 +1,20 @@
1
cmake_minimum_required(VERSION 3.28)
2
3
+# Disable C++20 module scanning for compatibility with GCC/Clang (CMake 3.31+)
4
+# CMP0155: C++ module dependencies are supported by Ninja Generators
5
+if (POLICY CMP0155)
6
+ cmake_policy(SET CMP0155 OLD)
7
+endif ()
8
+set(CMAKE_CXX_SCAN_FOR_MODULES OFF CACHE BOOL "Disable C++20 module scanning" FORCE)
9
+
10
project(towerforge VERSION 0.1.0 LANGUAGES CXX)
11
12
# Enable testing at the root level for CTest to work with presets
13
enable_testing()
14
-
15
# Include directories
16
include_directories(${CMAKE_SOURCE_DIR}/include)
17
18
# Subdirectories for modules
19
add_subdirectory(src/core)
20
0 commit comments