Skip to content

Commit eb35882

Browse files
authored
Merge pull request #130 from nmnobre/c_std
Set C std to C17 to avoid errors with gcc 15
2 parents df2ba1b + 4feb673 commit eb35882

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)