Skip to content

Commit 242df5f

Browse files
Explicitly set c standard to 11
1 parent ec1bbd1 commit 242df5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1.0) # Threads::Threads
1+
cmake_minimum_required(VERSION 3.1.0) # Threads::Threads and CMAKE_C_STANDARD
22

33
project(fastfetch
44
VERSION 1.5.2
@@ -42,6 +42,7 @@ if(NOT CMAKE_BUILD_TYPE)
4242
set(CMAKE_BUILD_TYPE Release)
4343
endif()
4444

45+
set(CMAKE_C_STANDARD 11)
4546
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wconversion")
4647
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-O3")
4748

0 commit comments

Comments
 (0)