Skip to content

Commit 167be9e

Browse files
committed
We are requring C11; this time globally.
1 parent a2c955e commit 167be9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required(VERSION 3.15.0)
22

3+
set(CMAKE_C_STANDARD 11)
4+
set(CMAKE_C_STANDARD_REQUIRED ON)
5+
set(CMAKE_C_EXTENSIONS OFF)
6+
37
if(WIN32)
48
if(CMAKE_GENERATOR MATCHES "Visual Studio")
59
if(NOT DEFINED CMAKE_GENERATOR_TOOLSET)
@@ -51,8 +55,6 @@ target_link_libraries(blosc2_ext PRIVATE Python::NumPy)
5155

5256
# Add include directory for miniexpr.h and others
5357
target_include_directories(blosc2_ext PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/blosc2")
54-
# Enforce a C standard that bundled deps rely on (e.g. OpenZL requires C11).
55-
target_compile_features(blosc2_ext PRIVATE c_std_11)
5658
if(WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "Clang")
5759
execute_process(
5860
COMMAND "${CMAKE_C_COMPILER}" -print-resource-dir

0 commit comments

Comments
 (0)