vcpkg/ports/libgig/0002-cmake-fixes.patch
2023-10-09 15:03:09 -07:00

19 lines
522 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ae66913..893e3ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,9 +1,9 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.1)
project(libgig)
-if(NOT MSVC)
- message(FATAL_ERROR "Please use configure and make, this cmake file is currently only to generate msvc solution files")
-endif()
+#To force the compiler to use C++ 11
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
#configuration options