diff --git a/CMakeLists.txt b/CMakeLists.txt index b364219..fd662d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,10 @@ else() set(PROJECT_VERSION_FULL ${PROJECT_VERSION}) endif() +if(WIN32 AND NOT MINGW) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std:c11" ) +endif() + list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake) ##############################################################################