Skip to content

Commit 293ca0c

Browse files
committed
cmake: workaround 3.28, 3.29 with GCC
1 parent e279907 commit 293ca0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cmake_minimum_required(VERSION 3.19...3.29)
2-
# 3.15+ for COMPILE_LANGAGE multiple languages, COMPILE_LANG_AND_ID
1+
cmake_minimum_required(VERSION 3.19...3.30)
32
# 3.19 for CheckSourceCompiles
43

54
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
@@ -15,6 +14,8 @@ enable_testing()
1514

1615
include(CheckSourceCompiles)
1716

17+
set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
18+
# This project isn't using C++ modules; avoid bugs in module scanning CMake 3.28, 3.29 with GCC >= 14.
1819

1920
set(CMAKE_C_STANDARD 99)
2021

0 commit comments

Comments
 (0)