aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Dahl <ada@thorsis.com>2021-04-08 14:20:50 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-04-08 15:37:21 +0200
commit5a4b15870efa2225e6586fbb4c3af05ff0659434 (patch)
treeb54ca604b1b9a7d7ddd6d8be89e524c12bb40440
parent93703d7411f534d3c96c7e7043bda0dff671a220 (diff)
downloadcmocka-master.tar.gz
cmocka-master.tar.xz
cmocka-master.zip
cmake: Add C99 requirement to target propertiesHEADmaster
stdint.h and uintmax_t require a C99 capable compiler. Let CMake know. Fixes: 0e70150002ab ("cmocka: Replace LargestIntegralType with uintmax_t") Signed-off-by: Alexander Dahl <ada@thorsis.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 538ff3f..dca07a3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,6 +45,8 @@ set_target_properties(cmocka PROPERTIES
VERSION ${LIBRARY_VERSION}
SOVERSION ${LIBRARY_SOVERSION}
LINK_FLAGS "${DEFAULT_LINK_FLAGS}"
+ C_STANDARD 99
+ C_STANDARD_REQUIRED ON
)
add_library(cmocka::cmocka ALIAS cmocka)