mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-20 17:00:24 +08:00
16 lines
469 B
Diff
16 lines
469 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(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std:c11" )
|
||
|
+endif()
|
||
|
+
|
||
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
||
|
|
||
|
##############################################################################
|