1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Ricardo Ribalda <ribalda@debian.org>
Subject: Changes to CMakeLists
- Set CXX version
- Unset CFLAGS to allow injecting the hardening flags
- Bump the cmake minimum requirement
Forwarded: no
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9fde713..50cd695 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,8 @@ set(xc3sprog_VERSION_MAJOR 0)
set(xc3sprog_VERSION_MINOR 0)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
-set(CMAKE_CXX_FLAGS "-g -Wall")
-cmake_minimum_required(VERSION 2.6)
+set (CMAKE_CXX_STANDARD 11)
+cmake_minimum_required(VERSION 2.6...3.5)
find_package(PkgConfig REQUIRED)
|