mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 18:59:01 +08:00
16 lines
435 B
Diff
16 lines
435 B
Diff
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)
|
|
|
|
##############################################################################
|