Skip to content

Commit 4feb673

Browse files
committed
Set C std to C17 to avoid errors with gcc 15
1 parent 0e87672 commit 4feb673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required(VERSION 3.26...4.0)
22

33
project(SCALAPACK VERSION 2.2.2 LANGUAGES C Fortran)
4+
set(CMAKE_C_STANDARD 17)
5+
set(CMAKE_C_EXTENSIONS OFF)
46

57
# Add the CMake directory for custon CMake modules
68
set(CMAKE_MODULE_PATH "${SCALAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH})

0 commit comments

Comments
 (0)