vcpkg/ports/baresip-libre/use-c11.patch

16 lines
469 B
Diff
Raw Normal View History

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)
##############################################################################