File: cmakelist.patch

package info (click to toggle)
xc3sprog 0%2Bsvn795%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,792 kB
  • sloc: cpp: 15,983; ansic: 849; vhdl: 410; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 622 bytes parent folder | download
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)